summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-03-17 20:01:09 +0000
committerjbj <devnull@localhost>1999-03-17 20:01:09 +0000
commite444149fe3126e33ddf06beba6e5926901846fd9 (patch)
tree7055e9d7054b49d4affb340b6a47979310390057 /build.c
parent70e3f43050ffe6759ba3a20f5969b3aab9113662 (diff)
downloadlibrpm-tizen-e444149fe3126e33ddf06beba6e5926901846fd9.tar.gz
librpm-tizen-e444149fe3126e33ddf06beba6e5926901846fd9.tar.bz2
librpm-tizen-e444149fe3126e33ddf06beba6e5926901846fd9.zip
Typos.
CVS patchset: 2896 CVS date: 1999/03/17 20:01:09
Diffstat (limited to 'build.c')
-rw-r--r--build.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/build.c b/build.c
index 1f39b26d7..c017fd957 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);