Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
timidity
timidity-server-warning-fixes.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File timidity-server-warning-fixes.diff of Package timidity
https://bugzilla.novell.com/show_bug.cgi?id=517719 --- interface/server_c.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- a/interface/server_c.c +++ b/interface/server_c.c @@ -468,11 +468,13 @@ } if(n == 0) return 1; - if((params[0] = strtok(buff, " \t\r\n\240")) == NULL) - return 0; *nparams = 0; - while(params[*nparams] && *nparams < MAX_GETCMD_PARAMS) - params[++(*nparams)] = strtok(NULL," \t\r\n\240"); + do { + params[*nparams] = strtok(*nparams ? NULL : buff, " \t\r\n\240"); + if (!params[*nparams]) + break; + (*nparams)++; + } while (*nparams < MAX_GETCMD_PARAMS); return 0; }
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