Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nferenc:netbook
libmb1
libmb-utf8_fix-1.9.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libmb-utf8_fix-1.9.diff of Package libmb1
--- /trunk/libmatchbox/libmb/mbexp.c 2008/06/05 10:47:38 2047 +++ trunk/libmatchbox/libmb/mbexp.c 2008/06/06 11:24:45 2048 @@ -1673,7 +1673,7 @@ mb_util_next_utf8_char(unsigned char **string) { unsigned char *s, mask; - int length; + int length, tmp; s = *string; @@ -1704,7 +1704,8 @@ } *s++; - while(length-- > 0) { + tmp = length; + while(tmp-- > 0) { if((*s & 0xc0) != 0x80) { /* trailer must be 10xxxxxx */ /* ERROR */ return -1; @@ -1713,6 +1714,6 @@ } *string = s; - return length; + return length + 1; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor