From: Michael Adam Date: Fri, 20 Nov 2009 16:48:18 +0000 (+0100) Subject: s3:torture: make t_stringoverflow.c compile at least (pstring is long gone) X-Git-Tag: samba-4.0.0alpha9~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=350352cf38bccfa6ef60db1840bd09a4798a392e;p=thirdparty%2Fsamba.git s3:torture: make t_stringoverflow.c compile at least (pstring is long gone) I don't know whether these t_* programs are used at all any more, but this one was using pstrcpy... Michael --- diff --git a/source3/torture/t_stringoverflow.c b/source3/torture/t_stringoverflow.c index ec14d81189e..17765e6a2ce 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; }