From: jbj Date: Wed, 17 Mar 1999 20:01:09 +0000 (+0000) Subject: Typos. X-Git-Tag: rpm-4.4-release~3022 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e444149fe3126e33ddf06beba6e5926901846fd9;p=platform%2Fupstream%2Frpm.git Typos. CVS patchset: 2896 CVS date: 1999/03/17 20:01:09 --- diff --git a/build.c b/build.c index 1f39b26..c017fd9 100644 --- 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);