File librcc-printf.diff of Package librcc

=== modified file 'examples/example1.c'
--- examples/example1.c	2009-06-12 20:19:40 +0000
+++ examples/example1.c	2010-02-14 12:12:09 +0000
@@ -49,9 +49,9 @@
 	if (strlen(buf)<2) break;
 	recoded = rccRecode(NULL, 0, 1, buf);
 	if (recoded) {
-	    printf(recoded);
+	    printf("%s", recoded);
 	    free(recoded);
-	} else printf(buf);
+	} else printf("%s", buf);
     }
 
     rccFree();

=== modified file 'examples/example2.c'
--- examples/example2.c	2009-06-12 20:19:40 +0000
+++ examples/example2.c	2010-02-14 11:21:15 +0000
@@ -68,7 +68,7 @@
 	if (rccstring) {
 	    recoded = rccTo(NULL, 1, rccstring);
 	    if (recoded) {
-		printf(recoded);
+		printf("%s", recoded);
 		free(recoded);
 	    } else printf("Recoding from UTF-8 is failed\n");
 	    free(rccstring);

openSUSE Build Service is sponsored by