Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
openmotif22-libs
PrintableString.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PrintableString.diff of Package openmotif22-libs
--- lib/Xm/TextF.c +++ lib/Xm/TextF.c @@ -3723,15 +3723,15 @@ cache_ptr = tmp = XmStackAlloc(buf_size, cache); tmp_str = (wchar_t *)str; - ret_val = wctomb(tmp, *tmp_str); + ret_val = 0; count = 0; - while ( (ret_val > 0)&& (buf_size >= MB_CUR_MAX) && (count < n) ) + while (count < n && buf_size >= MB_CUR_MAX && + (ret_val = wctomb(tmp, *tmp_str)) > 0) { count += 1; tmp += ret_val; buf_size -= ret_val; tmp_str++; - ret_val = wctomb(tmp, *tmp_str); } if (ret_val == -1) /* bad character */
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