Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:vicidial
digitemp
printf-format.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File printf-format.patch of Package digitemp
Fix this: src/digitemp.c:589:5: error: format not a string literal and no format arguments [-Werror=format-security] printf( line ); ^ and this: userial/ioutil.c:89:7: error: format not a string literal and no format arguments [-Werror=format-security] sprintf(defbuf,buf); ^ --- src/digitemp.c | 2 +- userial/ioutil.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/src/digitemp.c +++ b/src/digitemp.c @@ -586,7 +586,7 @@ int log_string( char *line ) perror("Error loging to logfile"); close( fd ); } else { - printf( line ); + printf("%s", line); } return 0; } --- a/userial/ioutil.c +++ b/userial/ioutil.c @@ -86,7 +86,7 @@ int EnterString(char *msg, char *buf, in // remember the start length deflen = strlen(buf); if (deflen < 80) - sprintf(defbuf,buf); + sprintf(defbuf, "%s", buf); else defbuf[0] = 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