Commit cea614b5 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed char -> unsigned char in s_mem_crea_str. Removed left-over

reference conuting.
parent 54981ae5
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment