Skip to content

Commit

Permalink
Properly escape quotes in process_escape_args() library function
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Pettit committed Mar 2, 2010
1 parent c43f2a3 commit 7aee8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ process_escape_args(char **argv)
if (argp != argv) {
ds_put_char(&ds, ' ');
}
if (arg[strcspn(arg, " \t\r\n\v\\")]) {
if (arg[strcspn(arg, " \t\r\n\v\\\'\"")]) {
ds_put_char(&ds, '"');
for (p = arg; *p; p++) {
if (*p == '\\' || *p == '\"') {
Expand Down

0 comments on commit 7aee8e5

Please sign in to comment.