This commit is contained in:
relyea%netscape.com 2001-09-20 22:02:46 +00:00
Родитель c469e17035
Коммит 3b81a033c1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -32,7 +32,7 @@
*/ */
#ifdef DEBUG #ifdef DEBUG
static const char CVS_ID[] = "@(#) $RCSfile: utf8.c,v $ $Revision: 1.3 $ $Date: 2000-05-12 18:43:28 $ $Name: $"; static const char CVS_ID[] = "@(#) $RCSfile: utf8.c,v $ $Revision: 1.4 $ $Date: 2001-09-20 22:02:46 $ $Name: $";
#endif /* DEBUG */ #endif /* DEBUG */
/* /*
@ -699,7 +699,7 @@ nssUTF8_CopyIntoFixedBuffer
} }
/* Too long. We have to trim the last character */ /* Too long. We have to trim the last character */
for( bs; bs > 0; bs-- ) { for( bs; bs != 0; bs-- ) {
if( (buffer[bs-1] & 0xC0) != 0x80 ) { if( (buffer[bs-1] & 0xC0) != 0x80 ) {
buffer[bs-1] = pad; buffer[bs-1] = pad;
break; break;