Typos.
authorjbj <devnull@localhost>
Wed, 17 Mar 1999 20:01:09 +0000 (20:01 +0000)
committerjbj <devnull@localhost>
Wed, 17 Mar 1999 20:01:09 +0000 (20:01 +0000)
CVS patchset: 2896
CVS date: 1999/03/17 20:01:09

build.c

diff --git a/build.c b/build.c
index 1f39b26..c017fd9 100644 (file)
--- a/build.c
+++ b/build.c
@@ -183,8 +183,11 @@ int build(const char *arg, int buildAmount, const char *passPhrase,
 
     printf("Building target platforms: %s\n", targets);
 
-    for (t = targets; (te = strchr(t, ',')) != NULL; t = te) {
-       char *target = alloca(te-t+1);
+    for (t = targets; *t != '\0'; t = te) {
+       char *target;
+       if ((te = strchr(t, ',')) == NULL)
+           te = t + strlen(t);
+       target = alloca(te-t+1);
        strncpy(target, t, (te-t));
        target[te-t] = '\0';
        printf("Building for target %s\n", target);