From 45d6a88841f0db650d615522b1f6594ea72ceb7e Mon Sep 17 00:00:00 2001 From: tma Date: Tue, 4 Oct 2005 01:21:34 +0000 Subject: * Dewarninged the lcc and q3asm source * Removed traditional target platforms from the lcc build. This might break building lcc on Windows using nmake. Submit patches or be quiet :p * Default target for lcc is now bytecode, so -Wf-target=bytecode is no longer needed on the lcc command line git-svn-id: svn://svn.icculus.org/quake3/trunk@132 edf5b092-35ff-0310-97b2-ce42778d08ea --- lcc/src/trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lcc/src/trace.c') diff --git a/lcc/src/trace.c b/lcc/src/trace.c index 06b627d..3b9ba78 100644 --- a/lcc/src/trace.c +++ b/lcc/src/trace.c @@ -8,7 +8,7 @@ static Symbol frameno; /* local holding frame number */ /* appendstr - append str to the evolving format string, expanding it if necessary */ static void appendstr(char *str) { do - if (fp == fmtend) + if (fp == fmtend) { if (fp) { char *s = allocate(2*(fmtend - fmt), FUNC); strncpy(s, fmt, fmtend - fmt); @@ -19,6 +19,7 @@ static void appendstr(char *str) { fp = fmt = allocate(80, FUNC); fmtend = fmt + 80; } + } while ((*fp++ = *str++) != 0); fp--; } -- cgit v1.2.3