diff --git a/libs/gamecode/builtins/pr_cmds.c b/libs/gamecode/builtins/pr_cmds.c index 5dc0d7f9a..7641ab150 100644 --- a/libs/gamecode/builtins/pr_cmds.c +++ b/libs/gamecode/builtins/pr_cmds.c @@ -554,10 +554,10 @@ PF_sprintf (progs_t *pr) char *format; char *c; // current char *out = 0; + char new_format[INT_WIDTH * 2 + 9]; // "%0-+ #." and conversion int fmt_alternate, fmt_leadzero, fmt_leftjust, fmt_minwidth, fmt_precision, fmt_signed, fmt_space, looping, new_format_i, ret; - int cur_arg = 3, out_max = 32, out_size = 0; - char new_format[INT_WIDTH * 2 + 9]; // "%0-+ #." and conversion + int curarg = 3, out_max = 32, out_size = 0; format = G_STRING (pr, OFS_PARM0); c = format; diff --git a/libs/gamecode/engine/pr_opcode.c b/libs/gamecode/engine/pr_opcode.c index df6995303..a1cbdeee8 100644 --- a/libs/gamecode/engine/pr_opcode.c +++ b/libs/gamecode/engine/pr_opcode.c @@ -162,8 +162,8 @@ opcode_t pr_opcodes[] = { static const char * get_key (void *_op, void *unused) { - char *r = rep; static char rep[4]; + char *r = rep; opcode_t *op = (opcode_t *)_op; *r++ = (op->opcode & 0x7f) + 2;