From 55dfead066fbdda2dd2d252d219c98c76d583a91 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Mon, 10 Sep 2001 13:05:13 +0000 Subject: [PATCH] Typos (really ought to remember to test compile *before* committing, rather than immediately after). --- libs/gamecode/builtins/pr_cmds.c | 4 ++-- libs/gamecode/engine/pr_opcode.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;