am 45faade2
: Merge "Replaces uses of index() with strchr()."
* commit '45faade28ae9e245e7c611c26990254aba006d2a': Replaces uses of index() with strchr().
This commit is contained in:
commit
ea25602566
1 changed files with 1 additions and 1 deletions
2
vdc.c
2
vdc.c
|
@ -62,7 +62,7 @@ static int do_cmd(int sock, int argc, char **argv) {
|
|||
for (i = 1; i < argc; i++) {
|
||||
char *cmp;
|
||||
|
||||
if (!index(argv[i], ' '))
|
||||
if (!strchr(argv[i], ' '))
|
||||
asprintf(&cmp, "%s%s", argv[i], (i == (argc -1)) ? "" : " ");
|
||||
else
|
||||
asprintf(&cmp, "\"%s\"%s", argv[i], (i == (argc -1)) ? "" : " ");
|
||||
|
|
Loading…
Reference in a new issue