Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release-src > by-pkgid > d689e3e746b228ffb214cee0120047a6 > files > 2

comgt-0.32-12.mga1.src.rpm

diff -p -up comgt.0.32/comgt.c~ comgt.0.32/comgt.c
--- comgt.0.32/comgt.c~	2006-10-20 16:49:46.000000000 +0200
+++ comgt.0.32/comgt.c	2010-03-29 10:15:16.022802915 +0200
@@ -1262,7 +1262,7 @@ void opengt(void) {
   else {
     if ((comfd = open(device, O_RDWR|O_EXCL|O_NONBLOCK|O_NOCTTY)) <0) { //O_NONBLOCK|O_NOCTTY)) <0) {//
       sprintf(msg,"Can't open device %s.\n",device);
-      printf(msg);
+      printf("%s", msg);
       ext(1);
     }
   }
@@ -1297,7 +1297,7 @@ void opendevice(void) {
   if(strcmp(device,"-")!=0) {
     if ((comfd = open(device, O_RDWR|O_EXCL|O_NONBLOCK|O_NOCTTY)) <0) { //O_NONBLOCK|O_NOCTTY)) <0) {//
       sprintf(msg,"Can't open device %s.\n",device);
-      printf(msg);
+      printf("%s", msg);
       ext(1);
     }
   }