File tuxtype_w_fonts-1.5.17-printf.patch of Package tuxtype

Index: tuxtype_w_fonts-1.5.17/tuxtype/alphabet.c
===================================================================
--- tuxtype_w_fonts-1.5.17.orig/tuxtype/alphabet.c
+++ tuxtype_w_fonts-1.5.17/tuxtype/alphabet.c
@@ -212,14 +212,14 @@ int GetFinger(wchar_t uni_char)
 
   if (i == MAX_UNICODES)
   {
-    fprintf(stderr, "GetFinger() - Unicode char '%C' not found in list.\n");
+    fprintf(stderr, "GetFinger() - Unicode char '%C' not found in list.\n",uni_char);
     return -2;
   }
 
   if ((keyboard_list[i].finger < 0)
    || (keyboard_list[i].finger > 9))
   {
-    fprintf(stderr, "GetFinger() - Unicode char '%C' has no valid finger.\n");
+    fprintf(stderr, "GetFinger() - Unicode char '%C' has no valid finger.\n",uni_char);
     return -1;
   }  
 
Index: tuxtype_w_fonts-1.5.17/tuxtype/scripting.c
===================================================================
--- tuxtype_w_fonts-1.5.17.orig/tuxtype/scripting.c
+++ tuxtype_w_fonts-1.5.17/tuxtype/scripting.c
@@ -380,7 +380,7 @@ int TestLesson(void)
   /* Getting to here means "stop == 1", try to run chosen script: */
   if (load_script(fn) != 0)
   {
-    fprintf(stderr, "load_script() failed to load '%s'\n");
+    fprintf(stderr, "load_script() failed to load '%s'\n",fn);
     return 0; // bail if any errors occur
   }
openSUSE Build Service is sponsored by