diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-12 22:27:04 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-12 22:27:04 +0100 |
commit | b7c9d26ddeb1f230c1eb4435f3893af0054cfdf7 (patch) | |
tree | 7715f9969864dd39d81e658ebef5e742099d44cd /fish/fish.c | |
parent | f1a10c6285cca30f8c9491ae08951137457bb018 (diff) | |
download | libguestfs-b7c9d26ddeb1f230c1eb4435f3893af0054cfdf7.tar.gz libguestfs-b7c9d26ddeb1f230c1eb4435f3893af0054cfdf7.tar.xz libguestfs-b7c9d26ddeb1f230c1eb4435f3893af0054cfdf7.zip |
Fix looping bug in parse_string_list, and remove debug message.
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fish/fish.c b/fish/fish.c index 18b8d451..b0d91c79 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -476,8 +476,6 @@ parse_size (const char *str, off_t *size_rtn) return -1; } - printf ("size = %lu\n", size); - /* XXX 32 bit file offsets, if anyone uses them? GCC should give * a warning here anyhow. */ @@ -540,7 +538,7 @@ parse_string_list (const char *str) pend = strchrnul (p, ':'); argv[i] = strndup (p, pend-p); i++; - p = *pend == ':' ? pend+1 : p; + p = *pend == ':' ? pend+1 : pend; } argv[i] = NULL; |