summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/patch/backupfile.c2
1 files changed, 1 insertions, 1 deletions
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)