Remove security hole-in-a-function NetGetSt(), which was thankfully not used

anywhere in the code.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@487 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2006-07-21 20:01:01 +00:00
parent 6166aa48d3
commit b8e4ca782f
1 changed files with 1 additions and 3 deletions

View File

@ -176,6 +176,7 @@ extern UDWORD NEThashBuffer(unsigned char *pData, UDWORD size);
#include "netlobby.h" // more functions to provide lobby facilities.
// Some shortcuts to help you along!
/* FIXME: This is _not_ portable! Bad, Pumpkin, bad! - Per */
#define NetAdd(m,pos,thing) \
memcpy(&(m.body[pos]),&(thing),sizeof(thing))
@ -208,8 +209,5 @@ extern UDWORD NEThashBuffer(unsigned char *pData, UDWORD size);
#define NetGetUint32(m,pos,thing) \
(thing) = *((Uint32*)(&((m)->body[(pos)])))
#define NetGetSt(m,pos,stri) \
strcpy(stri,&(m->body[pos]))
#endif