2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

Properly escape quotes in process_escape_args() library function

This commit is contained in:
Justin Pettit
2010-03-01 17:52:12 -08:00
parent c43f2a3282
commit 7aee8e5a0a

View File

@@ -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 == '\"') {