ICU-2135 read more than 0 bytes

X-SVN-Rev: 10376
This commit is contained in:
George Rhoten 2002-11-26 18:20:30 +00:00
parent cc646183b4
commit 72191463cd

View file

@ -60,7 +60,9 @@ ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t*
/* unread the bytes beyond what was consumed for U+FEFF */
T_FileStream_rewind(in);
numRead = T_FileStream_read(in, start,*signatureLength);
if (*signatureLength > 0) {
numRead = T_FileStream_read(in, start, *signatureLength);
}
if(*cp==NULL){
*conv =NULL;