From 56e7060c2f4a7d5096d4c56cdb54eeee2bad651e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 8 Feb 2009 18:09:28 +0000 Subject: [PATCH] abuse of sprintf --- src/Jamrules | 2 +- src/common/gamecode/report.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jamrules b/src/Jamrules index c96f7b551..abd557aa7 100644 --- a/src/Jamrules +++ b/src/Jamrules @@ -20,7 +20,7 @@ if $(BINDINGS) = TOLUA { } if ! $(LUA_VERSION) { - LUA_VERSION = 5.0 ; + LUA_VERSION = 5.1 ; } if ! $(HAVE_LUA) { diff --git a/src/common/gamecode/report.c b/src/common/gamecode/report.c index 0776e6cf4..b70baa499 100644 --- a/src/common/gamecode/report.c +++ b/src/common/gamecode/report.c @@ -1466,7 +1466,7 @@ report_template(const char * filename, report_context * ctx, const char * charse } rps_nowrap(F, ""); rnl(F); - sprintf(buf, LOC(f->locale, parameters[P_NEXT])); + strcpy(buf, LOC(f->locale, parameters[P_NEXT])); rps_nowrap(F, buf); rnl(F); fclose(F);