diff options
author | 1999-12-04 21:00:03 +0000 | |
---|---|---|
committer | 1999-12-04 21:00:03 +0000 | |
commit | b759e02bc543f1180b1e93e0db855ff6e2927102 (patch) | |
tree | b814bb712ed977e85e057bf7f6975ba623774372 /usr.bin/patch/backupfile.c | |
parent | Some repair. (diff) | |
download | wireguard-openbsd-b759e02bc543f1180b1e93e0db855ff6e2927102.tar.xz wireguard-openbsd-b759e02bc543f1180b1e93e0db855ff6e2927102.zip |
a few more overflows gone
Diffstat (limited to 'usr.bin/patch/backupfile.c')
-rw-r--r-- | usr.bin/patch/backupfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/backupfile.c b/usr.bin/patch/backupfile.c index c7aeb51214d..c23ef037cfe 100644 --- a/usr.bin/patch/backupfile.c +++ b/usr.bin/patch/backupfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: backupfile.c,v 1.6 1999/01/03 05:33:48 millert Exp $ */ +/* $OpenBSD: backupfile.c,v 1.7 1999/12/04 21:00:03 provos Exp $ */ /* backupfile.c -- make Emacs style backup file names Copyright (C) 1990 Free Software Foundation, Inc. @@ -14,7 +14,7 @@ Some algorithms adapted from GNU Emacs. */ #ifndef lint -static char rcsid[] = "$OpenBSD: backupfile.c,v 1.6 1999/01/03 05:33:48 millert Exp $"; +static char rcsid[] = "$OpenBSD: backupfile.c,v 1.7 1999/12/04 21:00:03 provos Exp $"; #endif /* not lint */ #include <stdio.h> @@ -195,7 +195,7 @@ concat (str1, str2) char *str1, *str2; { char *newstr; - char str1_length = strlen (str1); + int str1_length = strlen (str1); newstr = malloc (str1_length + strlen (str2) + 1); if (newstr == 0) |