b540f1a698
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librcc?expand=0&rev=3
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
Author: Suren A. Chilingaryan <csa@dside.dyndns.org>
|
|
|
|
Index: examples/example1.c
|
|
===================================================================
|
|
--- examples/example1.c.orig 2009-08-27 23:57:37.000000000 +0400
|
|
+++ examples/example1.c 2010-03-08 22:59:20.000000000 +0300
|
|
@@ -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();
|
|
Index: examples/example2.c
|
|
===================================================================
|
|
--- examples/example2.c.orig 2009-08-27 23:57:37.000000000 +0400
|
|
+++ examples/example2.c 2010-03-08 22:59:20.000000000 +0300
|
|
@@ -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);
|