Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
librcc0
librcc-printf.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File librcc-printf.diff of Package librcc0
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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor