abuse of sprintf

This commit is contained in:
Enno Rehling 2009-02-08 18:09:28 +00:00
parent 83d72028c2
commit 56e7060c2f
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ if $(BINDINGS) = TOLUA {
} }
if ! $(LUA_VERSION) { if ! $(LUA_VERSION) {
LUA_VERSION = 5.0 ; LUA_VERSION = 5.1 ;
} }
if ! $(HAVE_LUA) { if ! $(HAVE_LUA) {

View File

@ -1466,7 +1466,7 @@ report_template(const char * filename, report_context * ctx, const char * charse
} }
rps_nowrap(F, ""); rps_nowrap(F, "");
rnl(F); rnl(F);
sprintf(buf, LOC(f->locale, parameters[P_NEXT])); strcpy(buf, LOC(f->locale, parameters[P_NEXT]));
rps_nowrap(F, buf); rps_nowrap(F, buf);
rnl(F); rnl(F);
fclose(F); fclose(F);