Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
cea614b5
Commit
cea614b5
authored
33 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Fixed char -> unsigned char in s_mem_crea_str. Removed left-over
reference conuting.
parent
54981ae5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libraries/libmisc/s-string.c
+3
-9
3 additions, 9 deletions
src/libraries/libmisc/s-string.c
with
3 additions
and
9 deletions
src/libraries/libmisc/s-string.c
+
3
−
9
View file @
cea614b5
...
...
@@ -126,9 +126,9 @@ s_crea_str (String * dest_string,
*/
EXPORT
Success
s_mem_crea_str
(
String
*
dest_string
,
const
char
*
buffer
,
String_size
length
)
s_mem_crea_str
(
String
*
dest_string
,
const
unsigned
char
*
buffer
,
String_size
length
)
{
void
*
temp_ptr
;
/* To hold result from malloc/realloc
* before actually using it. */
...
...
@@ -139,9 +139,6 @@ s_mem_crea_str (String * dest_string,
return
FAILURE
;
}
if
(
dest_string
->
string
==
NULL
)
++
no_of_allocated_strings
;
FREE_0
(
dest_string
->
string
);
dest_string
->
string
=
temp_ptr
;
...
...
@@ -174,9 +171,6 @@ s_size_crea_str(String *result,
return
FAILURE
;
}
if
(
result
->
string
==
NULL
)
++
no_of_allocated_strings
;
FREE_0
(
result
->
string
);
result
->
string
=
temp_ptr
;
result
->
len
=
length
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment