Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 22 May 1998 17:17:46 +0000 (17:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 22 May 1998 17:17:46 +0000 (17:17 +0000)
1998-05-22  Ulrich Drepper  <drepper@cygnus.com>

* libio/strops.c (_IO_str_underflow): Read newly available
character from buffer as unsigned.

ChangeLog
libio/strops.c

index 3a67f97..0de6d80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-05-22  Ulrich Drepper  <drepper@cygnus.com>
+
+       * libio/strops.c (_IO_str_underflow): Read newly available
+       character from buffer as unsigned.
+
 1998-05-22 10:56  Ulrich Drepper  <drepper@cygnus.com>
 
        * catgets/Makefile (distribute): Add xopen-msg.h.
index b079c9f..c3e245f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -189,7 +189,7 @@ _IO_str_underflow (fp)
       fp->_IO_write_ptr = fp->_IO_write_end;
     }
   if (fp->_IO_read_ptr < fp->_IO_read_end)
-    return *fp->_IO_read_ptr;
+    return *((unsigned char *) fp->_IO_read_ptr);
   else
     return EOF;
 }