blob: b0503adb8fa69fc6e4bd00a120438adbf633debb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "includes.h"
int main(void)
{
fstring dest;
printf("running on valgrind? %d\n", RUNNING_ON_VALGRIND);
/* Try copying a string into an fstring buffer. The string
* will actually fit, but this is still wrong because you
* can't pstrcpy into an fstring. This should trap in a
* developer build. */
pstrcpy(dest, "hello");
return 0;
}
|