summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example1.c4
-rw-r--r--examples/example2.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/example1.c b/examples/example1.c
index ffbc3e0..90d0072 100644
--- a/examples/example1.c
+++ b/examples/example1.c
@@ -49,9 +49,9 @@ int main() {
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();
diff --git a/examples/example2.c b/examples/example2.c
index c10a3d5..ed36aa2 100644
--- a/examples/example2.c
+++ b/examples/example2.c
@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
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);