From ee5803048cecea310be065e068cee40d08135ef9 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 14 Feb 2010 23:04:39 +0100 Subject: Fix printf format errors --- examples/example1.c | 4 ++-- examples/example2.c | 2 +- release | 1 + 3 files changed, 4 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); diff --git a/release b/release index 40a8567..6318745 100755 --- a/release +++ b/release @@ -52,4 +52,5 @@ cp -a * $RDIR/$rname rm -rf $rname scp $rname.tar.bz2 csa@dside.dyndns.org:/home/csa/public_html/files/rusxmms/ + ssh csa@dside.dyndns.org ln -sf $rname.tar.bz2 /home/csa/public_html/files/rusxmms/$NAME-latest.tar.bz2 ) -- cgit v1.2.3