diff options
author | jbj <devnull@localhost> | 1999-03-17 20:01:09 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-03-17 20:01:09 +0000 |
commit | e444149fe3126e33ddf06beba6e5926901846fd9 (patch) | |
tree | 7055e9d7054b49d4affb340b6a47979310390057 /build.c | |
parent | 70e3f43050ffe6759ba3a20f5969b3aab9113662 (diff) | |
download | rpm-e444149fe3126e33ddf06beba6e5926901846fd9.tar.gz rpm-e444149fe3126e33ddf06beba6e5926901846fd9.tar.bz2 rpm-e444149fe3126e33ddf06beba6e5926901846fd9.zip |
Typos.
CVS patchset: 2896
CVS date: 1999/03/17 20:01:09
Diffstat (limited to 'build.c')
-rw-r--r-- | build.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |