From 03d7e648bd6d5f6cfcb461b4dc52147f12adf597 Mon Sep 17 00:00:00 2001 From: jwd Date: Tue, 29 Jul 2003 00:31:07 +0000 Subject: [PATCH] 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(-) 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)