Displaying 1 result from an estimated 1 matches for "d24c162".
Did you mean:
d24167
2009 Sep 11
1
[PATCH] guestfish: Enable grouping in string lists
...}
}
- argv[i] = NULL;
+
+ /* NULL terminate the argument list */
+ argv_len++;
+ argv = realloc(argv, sizeof(*argv) * argv_len);
+ if (NULL == argv) { perror ("realloc"); exit (1); }
+ argv[argv_len-1] = NULL;
return argv;
}
diff --git a/guestfish.pod b/guestfish.pod
index d24c162..affb83b 100644
--- a/guestfish.pod
+++ b/guestfish.pod
@@ -250,9 +250,13 @@ quotes. For example:
rm '/"'
A few commands require a list of strings to be passed. For these, use
-a space-separated list, enclosed in quotes. For example:
+a whitespace-separated list, enclosed in qu...