diff options
author | jwd <jwd@FreeBSD.org> | 2003-07-29 00:31:07 +0000 |
---|---|---|
committer | jwd <jwd@FreeBSD.org> | 2003-07-29 00:31:07 +0000 |
commit | 03d7e648bd6d5f6cfcb461b4dc52147f12adf597 (patch) | |
tree | 13e9ebb68fb516d7dadd8a2faa65a21e6ada8864 /gnu/usr.bin/patch | |
parent | f4b299adc08466d37a9882c6460ecce0a1505a45 (diff) | |
download | FreeBSD-src-03d7e648bd6d5f6cfcb461b4dc52147f12adf597.zip FreeBSD-src-03d7e648bd6d5f6cfcb461b4dc52147f12adf597.tar.gz |
returned length can exceed the limits of type char
Submitted by: blc@bsdwins.com
Approved by: gad
MFC after: 1 week
Diffstat (limited to 'gnu/usr.bin/patch')
-rw-r--r-- | gnu/usr.bin/patch/backupfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/patch/backupfile.c b/gnu/usr.bin/patch/backupfile.c index d4edebb4..c81749b 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) |