Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/citrus _citrus_NONE_stdenc_cstomb: return E2BIG cor...



details:   https://anonhg.NetBSD.org/src/rev/708b7c146552
branches:  trunk
changeset: 556895:708b7c146552
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon Dec 29 17:49:22 2003 +0000

description:
_citrus_NONE_stdenc_cstomb: return E2BIG correctly.

diffstat:

 lib/libc/citrus/citrus_none.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r de109b2b67a6 -r 708b7c146552 lib/libc/citrus/citrus_none.c
--- a/lib/libc/citrus/citrus_none.c     Mon Dec 29 17:36:12 2003 +0000
+++ b/lib/libc/citrus/citrus_none.c     Mon Dec 29 17:49:22 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_none.c,v 1.10 2003/06/26 12:09:56 tshiozak Exp $        */
+/*     $NetBSD: citrus_none.c,v 1.11 2003/12/29 17:49:22 yamt Exp $    */
 
 /*-
  * Copyright (c)2002 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_none.c,v 1.10 2003/06/26 12:09:56 tshiozak Exp $");
+__RCSID("$NetBSD: citrus_none.c,v 1.11 2003/12/29 17:49:22 yamt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -407,8 +407,8 @@
                return (0);
        }
        if (n<1) {
-               *nresult = (size_t)-2;
-               return (0);
+               *nresult = (size_t)-1;
+               return (E2BIG);
        }
        if (csid != 0 || (idx&0xFF) != idx)
                return (EILSEQ);



Home | Main Index | Thread Index | Old Index