aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-05-02 05:07:13 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-05-02 05:07:13 +0000
commit76ccb81ef2e9952a31e283af1098cf388394dd04 (patch)
treed303791e025d5c668f88d04fad109b71d25e8b64
parent7f5e4ed3591f7e69afe6a84ac4ffd8cb05c53c7c (diff)
Notes
-rw-r--r--usr.bin/xargs/xargs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
index c5c50d39e6053..6a814172486bf 100644
--- a/usr.bin/xargs/xargs.c
+++ b/usr.bin/xargs/xargs.c
@@ -216,7 +216,7 @@ main(int argc, char **argv)
if (nline <= 0)
errx(1, "insufficient space for command");
- if ((bbp = malloc((u_int)nline + 1)) == NULL)
+ if ((bbp = malloc((size_t)nline + 1)) == NULL)
err(1, "malloc");
ebp = (argp = p = bbp) + nline - 1;
@@ -304,7 +304,7 @@ arg2:
if (avj != av && repls > 0 &&
strstr(*tmp, replstr) != NULL) {
strnsubst(tmp, replstr,
- inpline, 255);
+ inpline, (size_t)255);
repls--;
} else {
*tmp = strdup(*avj);