Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen remove patch botches.



details:   https://anonhg.NetBSD.org/src/rev/84d408f14f57
branches:  trunk
changeset: 784900:84d408f14f57
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 13 22:19:18 2013 +0000

description:
remove patch botches.

diffstat:

 lib/libc/gen/vis.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 04a76513a4a8 -r 84d408f14f57 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c        Wed Feb 13 22:17:12 2013 +0000
+++ b/lib/libc/gen/vis.c        Wed Feb 13 22:19:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vis.c,v 1.50 2013/02/13 22:15:43 christos Exp $        */
+/*     $NetBSD: vis.c,v 1.51 2013/02/13 22:19:18 christos Exp $        */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.50 2013/02/13 22:15:43 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.51 2013/02/13 22:19:18 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 #ifdef __FBSDID
 __FBSDID("$FreeBSD$");
@@ -312,16 +312,13 @@
        dst = pdst;
        src = psrc;
 
-       if (mblength < len)
-               len = mblength;
-
        mbslength = (ssize_t)mblength;
        while (mbslength > 0) {
                clen = mbtowc(src, mbsrc, MB_LEN_MAX);
                if (clen < 0) {
                        *src = (wint_t)(u_char)*mbsrc;
                        clen = 1;
-               }`
+               }
                if (clen == 0)
                        clen = 1;
                src++;



Home | Main Index | Thread Index | Old Index