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