mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
fix for CustomTF menu truncation
This commit is contained in:
parent
1362736e55
commit
f3c2c4e868
1 changed files with 8 additions and 6 deletions
|
@ -51,13 +51,15 @@ char *
|
|||
PF_VarString (progs_t *pr, int first)
|
||||
{
|
||||
int i;
|
||||
static char out[256];
|
||||
int len;
|
||||
char *out;
|
||||
|
||||
out[0] = 0;
|
||||
for (i = first; i < pr->pr_argc; i++) {
|
||||
strncat (out, G_STRING (pr, (OFS_PARM0 + i * 3)),
|
||||
sizeof (out) - strlen (out));
|
||||
}
|
||||
|
||||
for (len = 0, i = first; i < pr->pr_argc; i++)
|
||||
len += strlen (G_STRING (pr, (OFS_PARM0 + i * 3)));
|
||||
out = Hunk_TempAlloc (len + 1);
|
||||
for (i = first; i < pr->pr_argc; i++)
|
||||
strcat (out, G_STRING (pr, (OFS_PARM0 + i * 3)));
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue