]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 19 Apr 1999 07:44:20 +0000 (07:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 19 Apr 1999 07:44:20 +0000 (07:44 +0000)
1999-04-19  Ulrich Drepper  <drepper@cygnus.com>

* wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Correctly initialize
outbufend for dst==NULL.

ChangeLog
wcsmbs/mbsnrtowcs.c

index ffdb41935d9d7e806d1866b167911da9b59ad468..cc162d3ee4349421829806a6cd1c4440ae9b3900 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-19  Ulrich Drepper  <drepper@cygnus.com>
+
+       * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Correctly initialize
+       outbufend for dst==NULL.
+
 1999-04-18  Ulrich Drepper  <drepper@cygnus.com>
 
        * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Correctly initialize outbufend
index 78e327eeea9d50c3444413aca56a9765a50ab72c..cb2d41c4c8542854a884317b9a96fbee94b1f29b 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
+   Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -68,7 +68,7 @@ __mbsnrtowcs (dst, src, nmc, len, ps)
       wchar_t buf[64];         /* Just an arbitrary size.  */
       const unsigned char *inbuf = *src;
 
-      data.outbufend = data.outbuf + sizeof (buf);
+      data.outbufend = (char *) buf + sizeof (buf);
       do
        {
          data.outbuf = (char *) buf;