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