mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-2135 read more than 0 bytes
X-SVN-Rev: 10376
This commit is contained in:
parent
cc646183b4
commit
72191463cd
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue