--
[ Picked text/plain from multipart/alternative ]
Doesn't look harmful at the moment, but there's a buffer overrun in
SpectatorGUI.cpp I got the warning MSVC2005 in a fresh sdk checkout a while
back but forgot to mention anything till now.

In SpectatorGUI.cpp, CSpectatorGUI.Update

wchar_t playerText[ 80 ], playerName[ 64 ], health[ 10 ];
wcscpy( playerText, L"Unable to find #Spec_PlayerItem*" );
memset( playerName, 0x0, sizeof( playerName ) * sizeof( wchar_t ) );

doesn't need the * sizeof(wchar_t)

spectatorgui.cpp(508) : warning C4789: destination of memory copy is too
small

Presumably it's only overrunning to un-used stack space at the moment, but a
bug nonetheless, however minor.

J
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to