Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kssingvo
bidwatcher
bidwatcher-1.3.17-changes_20070722.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bidwatcher-1.3.17-changes_20070722.patch of Package bidwatcher
--- bidwatcher/helpers.cpp.orig 2007-07-19 22:15:37.000000000 +0200 +++ bidwatcher/helpers.cpp 2007-07-22 17:50:29.000000000 +0200 @@ -1815,13 +1815,19 @@ char *auctioninfo::parseDescription(const char *from, char *till) { unsigned int idx, len; + char *end; while (isspace(*till)) till--; // copy over the description to a newline idx = 0; - len = sizeof(Description) - 1; + if ((end = strstr(from, " - (item")) != NULL) { + len = end - from; + len = (len < sizeof(Description)-1) ? len : sizeof(Description-1); + } else { + len = sizeof(Description) - 1; + } while (&from[idx] <= till && idx < len) { Description[idx] = from[idx];
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