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-861f7616d084master
parent
6166aa48d3
commit
b8e4ca782f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue