summary refs log tree commit diff
path: root/wcsmbs/mbsnrtowcs.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-19 07:44:20 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-19 07:44:20 +0000
commitd788be1eb4008bb29899e7c3f2c782ab0c0f3882 (patch)
tree848cde6423b5d936662b4dd5974acb4c8f24e88a /wcsmbs/mbsnrtowcs.c
parentd4bc783bf1b4ec05fcbc49f93b20b5e3199c23e4 (diff)
downloadglibc-d788be1eb4008bb29899e7c3f2c782ab0c0f3882.tar.gz
glibc-d788be1eb4008bb29899e7c3f2c782ab0c0f3882.tar.xz
glibc-d788be1eb4008bb29899e7c3f2c782ab0c0f3882.zip
Update.
1999-04-19  Ulrich Drepper  <drepper@cygnus.com>

	* wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Correctly initialize
	outbufend for dst==NULL.
Diffstat (limited to 'wcsmbs/mbsnrtowcs.c')
-rw-r--r--wcsmbs/mbsnrtowcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wcsmbs/mbsnrtowcs.c b/wcsmbs/mbsnrtowcs.c
index 78e327eeea..cb2d41c4c8 100644
--- a/wcsmbs/mbsnrtowcs.c
+++ b/wcsmbs/mbsnrtowcs.c
@@ -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;