am ea256025: am 45faade2: Merge "Replaces uses of index() with strchr()."

* commit 'ea256025669f4a5dd8c59e4c70ec7154a198be48':
  Replaces uses of index() with strchr().
This commit is contained in:
Dan Albert 2014-06-05 20:33:07 +00:00 committed by Android Git Automerger
commit 9c7a5826ec

2
vdc.c
View file

@ -80,7 +80,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)) ? "" : " ");