diff options
| author | Roy Marples <roy@marples.name> | 2009-09-09 10:06:23 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-09-09 10:06:23 +0000 |
| commit | 72e82f327f345ecc17209270e932ac0578fcfd6a (patch) | |
| tree | 4bfee7dac9f76f155903372a6386e996773e707c | |
| parent | dddafa722b2ea4df794d2b62170fc0a69170bf40 (diff) | |
| download | dhcpcd-72e82f327f345ecc17209270e932ac0578fcfd6a.tar.xz | |
Don't null terminate gratuitously when handling quotes.
| -rw-r--r-- | if-options.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/if-options.c b/if-options.c index 959fcba8..53bb1a18 100644 --- a/if-options.c +++ b/if-options.c @@ -258,8 +258,10 @@ parse_string_hwaddr(char *sbuf, ssize_t slen, const char *str, int clid) } else *sbuf++ = *str++; } - if (punt_last) + if (punt_last) { *--sbuf = '\0'; + l--; + } return l; } |
