Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
cea614b5
Commit
cea614b5
authored
Jul 06, 1991
by
Per Cederqvist
Browse files
Fixed char -> unsigned char in s_mem_crea_str. Removed left-over
reference conuting.
parent
54981ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libmisc/s-string.c
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
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment