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

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

2
vdc.c
View file

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