Module Name: src
Committed By: joerg
Date: Tue Oct 4 15:06:31 UTC 2016
Modified Files:
src/usr.bin/ftp: ftp.c
Log Message:
When using data outside the signed char range, it is better to
consistently use an unsigned char buffer.
To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/usr.bin/ftp/ftp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/ftp/ftp.c
diff -u src/usr.bin/ftp/ftp.c:1.166 src/usr.bin/ftp/ftp.c:1.167
--- src/usr.bin/ftp/ftp.c:1.166 Sun Dec 13 14:06:13 2015
+++ src/usr.bin/ftp/ftp.c Tue Oct 4 15:06:31 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.166 2015/12/13 14:06:13 tron Exp $ */
+/* $NetBSD: ftp.c,v 1.167 2016/10/04 15:06:31 joerg Exp $ */
/*-
* Copyright (c) 1996-2009 The NetBSD Foundation, Inc.
@@ -92,7 +92,7 @@
#if 0
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
#else
-__RCSID("$NetBSD: ftp.c,v 1.166 2015/12/13 14:06:13 tron Exp $");
+__RCSID("$NetBSD: ftp.c,v 1.167 2016/10/04 15:06:31 joerg Exp $");
#endif
#endif /* not lint */
@@ -2064,7 +2064,7 @@ abort_squared(int dummy)
void
abort_remote(FILE *din)
{
- char buf[BUFSIZ];
+ unsigned char buf[BUFSIZ];
int nfnd;
if (cout == NULL) {