Blob Blame Raw
--- portmidi/pm_test/latency.c_old	2014-06-09 19:58:02.503837705 +0200
+++ portmidi/pm_test/latency.c	2014-06-09 19:59:15.645838404 +0200
@@ -280,7 +280,7 @@ int get_number(char *prompt)
 {
     char line[STRING_MAX];
     int n = 0, i;
-    printf(prompt);
+    printf("%s",prompt);
     while (n != 1) {
         n = scanf("%d", &i);
         fgets(line, STRING_MAX, stdin);
diff -Nurp portmidi/pm_test/midiclock.c portmidi/pm_test.new/midiclock.c
--- portmidi/pm_test/midiclock.c	2014-06-09 20:05:10.783841793 +0200
+++ portmidi/pm_test.new/midiclock.c	2014-06-09 20:06:05.582842316 +0200
@@ -167,7 +167,7 @@ int get_number(char *prompt)
 {
     char line[STRING_MAX];
     int n = 0, i;
-    printf(prompt);
+    printf("%s",prompt);
     while (n != 1) {
         n = scanf("%d", &i);
         fgets(line, STRING_MAX, stdin);
@@ -256,7 +256,7 @@ int main(int argc, char **argv)
     err = Pm_OpenOutput(&midi, outp, DRIVER_INFO, OUTPUT_BUFFER_SIZE, 
                         TIME_PROC, TIME_INFO, LATENCY);
     if (err) {
-        printf(Pm_GetErrorText(err));
+        printf("%s",Pm_GetErrorText(err));
         goto error_exit_no_device;
     }
     active = true;
diff -Nurp portmidi/pm_test/mm.c portmidi/pm_test.new/mm.c
--- portmidi/pm_test/mm.c	2010-10-05 20:49:09.000000000 +0200
+++ portmidi/pm_test.new/mm.c	2014-06-09 20:09:26.222844231 +0200
@@ -119,7 +119,7 @@ int get_number(char *prompt)
 {
     char line[STRING_MAX];
     int n = 0, i;
-    printf(prompt);
+    printf("%s",prompt);
     while (n != 1) {
         n = scanf("%d", &i);
         fgets(line, STRING_MAX, stdin);
@@ -136,7 +136,7 @@ void receive_poll(PtTimestamp timestamp,
     if (!active) return;
     while ((count = Pm_Read(midi_in, &event, 1))) {
         if (count == 1) output(event.message);
-        else            printf(Pm_GetErrorText(count));
+        else            printf("%s",Pm_GetErrorText(count));
     }
 }
 
@@ -168,7 +168,7 @@ int main(int argc, char **argv)
     inp = get_number("Type input device number: ");
     err = Pm_OpenInput(&midi_in, inp, NULL, 512, NULL, NULL);
     if (err) {
-        printf(Pm_GetErrorText(err));
+        printf("%s",Pm_GetErrorText(err));
         Pt_Stop();
         mmexit(1);
     }
@@ -484,7 +484,7 @@ private int put_pitch(int p)
         "gs", "a", "bf", "b"    };
     /* note octave correction below */
     sprintf(result, "%s%d", ptos[p % 12], (p / 12) - 1);
-    printf(result);
+    printf("%s",result);
     return strlen(result);
 }
 
diff -Nurp portmidi/pm_test/test.c portmidi/pm_test.new/test.c
--- portmidi/pm_test/test.c	2009-09-16 18:54:04.000000000 +0200
+++ portmidi/pm_test.new/test.c	2014-06-09 20:10:04.310844594 +0200
@@ -37,7 +37,7 @@ int get_number(char *prompt)
 {
     char line[STRING_MAX];
     int n = 0, i;
-    printf(prompt);
+    printf("%s",prompt);
     while (n != 1) {
         n = scanf("%d", &i);
         fgets(line, STRING_MAX, stdin);
diff -Nurp portmidi/pm_test/sysex.c portmidi/pm_test.new/sysex.c
--- portmidi/pm_test/sysex.c	2010-09-20 21:57:48.000000000 +0200
+++ portmidi/pm_test.new/sysex.c	2014-06-09 20:12:05.502845751 +0200
@@ -39,7 +39,7 @@ int get_number(char *prompt)
 {
     char line[STRING_MAX];
     int n = 0, i;
-    printf(prompt);
+    printf("%s",prompt);
     while (n != 1) {
         n = scanf("%d", &i);
         fgets(line, STRING_MAX, stdin);