a buffer overrun has occurred in...

今天在写个小的XX工具时,VS2010DEBUG版能正常编译,运行正常,但是转到release版虽能正常编译,但是运行是错误,纠结半天 ,提示信息就是:

A buffer overrun has occurred in XXX.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.纠结半天,看这里,看那里,哎,最后想到有个strcpy,将其换做strncpy,一切风波化解了,罪恶啊罪恶,以此警戒自己。

你可能感兴趣的:(buffer,工具,2010)