diff options
-rw-r--r-- | source3/torture/t_stringoverflow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/t_stringoverflow.c b/source3/torture/t_stringoverflow.c index ec14d81189..17765e6a2c 100644 --- a/source3/torture/t_stringoverflow.c +++ b/source3/torture/t_stringoverflow.c @@ -2,7 +2,7 @@ int main(void) { - fstring dest; + char dest[100]; char *ptr = dest; printf("running on valgrind? %d\n", RUNNING_ON_VALGRIND); @@ -17,7 +17,7 @@ pstrcpy(dest, "hello"); #endif /* 0 */ - pstrcpy(ptr, "hello!"); + fstrcpy(ptr, "hello!"); return 0; } |