diff options
| author | Juli Mallett <jmallett@FreeBSD.org> | 2002-05-03 19:45:41 +0000 |
|---|---|---|
| committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-05-03 19:45:41 +0000 |
| commit | 38dff9a4391c3c3537814acecc88b433fcd40156 (patch) | |
| tree | d7fecd4bab2ff2f82aa5b04a1f4604f7f1a3946d /usr.bin/xargs | |
| parent | de8541ffe6ad4931309eeb7101ed8217ec640809 (diff) | |
Notes
Diffstat (limited to 'usr.bin/xargs')
| -rw-r--r-- | usr.bin/xargs/strnsubst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xargs/strnsubst.c b/usr.bin/xargs/strnsubst.c index 6baa3f0df704f..5ca2773fded7d 100644 --- a/usr.bin/xargs/strnsubst.c +++ b/usr.bin/xargs/strnsubst.c @@ -48,7 +48,7 @@ strnsubst(char **str, const char *match, const char *replstr, size_t maxsize) if (this == NULL) break; if ((strlen(s2) + ((uintptr_t)this - (uintptr_t)s1) + - (strlen(replstr) - 1)) > maxsize) { + (strlen(replstr) - 1)) > maxsize && *replstr != '\0') { strlcat(s2, s1, maxsize); goto done; } |
