commit | dd58c430b38aebae70f3b26707894ee52b792126 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Thu Jun 05 11:44:40 2014 -0700 |
committer | Dan Albert <danalbert@google.com> | Thu Jun 05 11:44:40 2014 -0700 |
tree | 08a26372188278ce8b3d2e9e8680b66af74bf66a | |
parent | 1881395b696017dfb40a01e718cc8dc2ea7a38e9 [diff] |
Replaces uses of index() with strchr(). Bionic is removing index() because it was removed from POSIX 2008. Change-Id: I704fb8962ff2c08b8f12245d2db2118d410826b0
diff --git a/vdc.c b/vdc.c index 59f34d6..a810872 100644 --- a/vdc.c +++ b/vdc.c
@@ -62,7 +62,7 @@ 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)) ? "" : " ");