1
0
Fork 0
forked from fte/fteqw

consistency fix

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2442 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-11-04 19:05:06 +00:00
parent 9d7a3b5d2a
commit 15f5bdfb4b

View file

@ -504,7 +504,7 @@ char *EvaluateDebugString(progfuncs_t *progfuncs, char *key)
fdef = ED_FindField (progfuncs, assignment); fdef = ED_FindField (progfuncs, assignment);
if (!fdef) if (!fdef)
{ {
sprintf(buf, "Can't find field %s\n", assignment); snprintf(buf, sizeof(buf), "Can't find field %s\n", assignment);
return buf; return buf;
} }
*(int *)val = G_INT(fdef->ofs); *(int *)val = G_INT(fdef->ofs);