mirror of
https://github.com/zoriya/ash.git
synced 2026-05-31 10:02:39 +00:00
fixing the bugs when you write after quotes the ptr was not incremented correctly
This commit is contained in:
+2
-2
@@ -62,8 +62,8 @@ int manage_specials_parsers(char *cmd, int index, char **buffer, int *inc, char
|
||||
*buffer = add_to_buffer(*buffer, *ptr, (*inc) - 1, true);
|
||||
*buffer = add_to_buffer(*buffer, data, strlen(data), false);
|
||||
free(data);
|
||||
*inc = -1;
|
||||
*ptr = cmd + index + 1;
|
||||
*inc = 0;
|
||||
*ptr = cmd + index + new_index + 1;
|
||||
if (!(*buffer))
|
||||
return (-1);
|
||||
return (new_index);
|
||||
|
||||
Reference in New Issue
Block a user