Run-Time Check Failure #2 - Stack around the variable 'buffer' was corrupted.

这种错误一般都是越界造成的,例如:

char buffer[10];
buffer[11] = '\0';

参考: http://forums.codeguru.com/showthread.php?t=299770

posted @ 2012-04-29 17:35  likebeta  阅读(523)  评论(0编辑  收藏  举报