Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
vhostmd.12865
value-newline.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File value-newline.patch of Package vhostmd.12865
Index: vhostmd-1.1/vhostmd/metric.c =================================================================== --- vhostmd-1.1.orig/vhostmd/metric.c +++ vhostmd-1.1/vhostmd/metric.c @@ -280,6 +280,12 @@ int metric_value_get(metric *m) goto out; fread(m->value, 1, len-1, fp); + + if (m->type != M_XML) { + size_t end = strlen(m->value) - 1; + if (m->value[end] == '\n') + m->value[end] = '\0'; + } out: ret = pclose(fp);
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