summaryrefslogtreecommitdiffstats
path: root/examples/example2.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2010-02-14 23:04:39 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2010-02-14 23:04:39 +0100
commitee5803048cecea310be065e068cee40d08135ef9 (patch)
treee83e9acb4e8ca9e4a21deebc9982375d5118fc08 /examples/example2.c
parent9e41eb5e6272b6c08f79ee0cb73fd363dd1d30fd (diff)
downloadlibrcc-ee5803048cecea310be065e068cee40d08135ef9.tar.gz
librcc-ee5803048cecea310be065e068cee40d08135ef9.tar.bz2
librcc-ee5803048cecea310be065e068cee40d08135ef9.tar.xz
librcc-ee5803048cecea310be065e068cee40d08135ef9.zip
Fix printf format errors
Diffstat (limited to 'examples/example2.c')
-rw-r--r--examples/example2.c2
1 files changed, 1 insertions, 1 deletions
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);