mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-16 00:52:30 +00:00
don't print both of the two possible warning messages in PF_VarString()
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@671 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
b0c683f4cd
commit
792318902f
1 changed files with 5 additions and 4 deletions
|
@ -58,12 +58,13 @@ static char *PF_VarString (int first)
|
|||
{
|
||||
s = q_strlcat(out, G_STRING((OFS_PARM0+i*3)), sizeof(out));
|
||||
if (s >= sizeof(out))
|
||||
break;
|
||||
{
|
||||
Con_Printf("PF_VarString: overflow (string truncated)\n");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
if (s > 255)
|
||||
Con_Warning("PF_VarString: %i characters exceeds standard limit of 255.\n", s);
|
||||
if (s >= sizeof(out))
|
||||
Con_Printf("PF_VarString: overflow (string truncated)\n");
|
||||
Con_Warning("PF_VarString: %i characters exceeds standard limit of 255.\n", (int) s);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue