From 74e35006baefda8cfaa6ab203e538094c1f62f71 Mon Sep 17 00:00:00 2001 From: "John W. De Boskey" Date: Tue, 29 Jul 2003 00:31:07 +0000 Subject: returned length can exceed the limits of type char Submitted by: blc@bsdwins.com Approved by: gad MFC after: 1 week --- gnu/usr.bin/patch/backupfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/usr.bin/patch/backupfile.c b/gnu/usr.bin/patch/backupfile.c index d4edebb4872b..c81749b2446b 100644 --- a/gnu/usr.bin/patch/backupfile.c +++ b/gnu/usr.bin/patch/backupfile.c @@ -213,7 +213,7 @@ static char * concat(const char *str1, const char *str2) { char *newstr; - char str1_length = strlen (str1); + int str1_length = strlen (str1); newstr = malloc (str1_length + strlen (str2) + 1); if (newstr == 0) -- cgit v1.3