SprintF
When did this start crapping out ? I am in my second day of C++ mental bombardment and reading old post I though this would work. Not exactly what I was trying to do, but right now just narrowing down my error.
Code:
sprintf("%c",0x12); Code:
questmgr.cpp:1108: error: invalid conversion from âintâ to âconst char*â |
Nevermind, obviously I needed to RTFM.
|
Quote:
http://msdn.microsoft.com/en-us/library/bb288454.aspx sprintf (and a host of other function calls) are at the root of essentially every buffer overflow. banned.h and strsafe.h are your friends. |
Well I got it from questmgr.cpp
I just did a quick ctr-f and found a ton of them in there, /shrug. In the end it did not matter, the code I added did not need it anyway. |
All times are GMT -4. The time now is 11:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.