Skip to content
Snippets Groups Projects
Commit 1d8ae81a authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Fix previous change to strtok_quote

parent 6b40ed48
No related branches found
No related tags found
No related merge requests found
......@@ -603,11 +603,10 @@ strtok_quote( char *line, char *sep )
break;
case '\\':
if ( next[1] ) {
if ( next[1] )
SAFEMEMCPY( next,
next + 1, strlen( next + 1 ) + 1 );
next++; /* dont parse the escaped character */
}
next++; /* dont parse the escaped character */
break;
default:
......
......@@ -177,10 +177,9 @@ strtok_quote(
break;
case '\\':
if ( next[1] ) {
if ( next[1] )
SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
next++; /* dont parse the escaped character */
}
next++; /* dont parse the escaped character */
break;
default:
......
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