Skip to content
Snippets Groups Projects
Commit b16ac700 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

StringUtilities: malloc arg bug fix

parent 9aed1576
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ int StringSplitWithSeperator( char *source_string, char *seperator, char*** ptr
sep_count++;
}
temp_list = ( char** )malloc ( sizeof( char* ) * sep_count+1 );
temp_list = ( char** )malloc ( sizeof( char* ) * (sep_count+1) );
if( DBG )
fprintf(stderr, "Input str %s , seperator %s sep count %d\n", duplicate_src, seperator, sep_count );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment