Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
pvm
pvm-3.4.5_missing_format_param.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pvm-3.4.5_missing_format_param.patch of Package pvm
Index: src/pvmlog.c =================================================================== --- src/pvmlog.c.orig +++ src/pvmlog.c @@ -348,7 +348,8 @@ char *fmt; va_list ap; { - char vtmp[255]; + size_t vlen = 255; + char vtmp[vlen]; int cnt = 0; int cc; @@ -362,7 +363,7 @@ /* snag var arg string, in case re-use whacks it... */ /* (thank you very much x86_64... :-Q */ - vsprintf(vtmp, fmt, ap); + vsnprintf(vtmp, vlen, fmt, ap); if (log_how & 1) { if (atnewline) { @@ -488,7 +489,7 @@ pvmlogprintf("em=0x%lx\n", (long) em); for (i=0; i < 10 ; i++ ) - pvmlogprintf("[%x/%c]", em[i]); + pvmlogprintf("[%x/%c]", em[i], em[i]); pvmlogprintf("\n"); pvmlogprintf("%s: %s\n", s, em);
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