aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-22 17:17:46 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-22 17:17:46 +0000
commit195d0dd4aa597d0c0d3f88b673a1ee736dfe364a (patch)
treef68c95df0cabd5a08802e08efe8046adf4ddcb8d /libio
parent3e300ca1aef3549968668a0fd380465e3d185282 (diff)
downloadglibc-195d0dd4aa597d0c0d3f88b673a1ee736dfe364a.tar
glibc-195d0dd4aa597d0c0d3f88b673a1ee736dfe364a.tar.gz
glibc-195d0dd4aa597d0c0d3f88b673a1ee736dfe364a.tar.bz2
glibc-195d0dd4aa597d0c0d3f88b673a1ee736dfe364a.zip
Update.
1998-05-22 Ulrich Drepper <drepper@cygnus.com> * libio/strops.c (_IO_str_underflow): Read newly available character from buffer as unsigned.
Diffstat (limited to 'libio')
-rw-r--r--libio/strops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/strops.c b/libio/strops.c
index b079c9fc29..c3e245f605 100644
--- a/libio/strops.c
+++ b/libio/strops.c
@@ -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;
}