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;
 
openSUSE Build Service is sponsored by