Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp When using data outside the signed char range, i...



details:   https://anonhg.NetBSD.org/src/rev/c864fbf43acf
branches:  trunk
changeset: 348100:c864fbf43acf
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Oct 04 15:06:31 2016 +0000

description:
When using data outside the signed char range, it is better to
consistently use an unsigned char buffer.

diffstat:

 usr.bin/ftp/ftp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1d5a500ac135 -r c864fbf43acf usr.bin/ftp/ftp.c
--- a/usr.bin/ftp/ftp.c Tue Oct 04 15:02:27 2016 +0000
+++ b/usr.bin/ftp/ftp.c Tue Oct 04 15:06:31 2016 +0000
@@ -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 @@
 void
 abort_remote(FILE *din)
 {
-       char buf[BUFSIZ];
+       unsigned char buf[BUFSIZ];
        int nfnd;
 
        if (cout == NULL) {



Home | Main Index | Thread Index | Old Index