diff options
author | Michael Adam <obnox@samba.org> | 2009-11-20 17:48:18 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-01 00:55:34 +0100 |
commit | 350352cf38bccfa6ef60db1840bd09a4798a392e (patch) | |
tree | 552fc54628c4254a300a233d5d77184537bd6e1d /source3/torture | |
parent | 8303bc49a45d5bab0cdbd4f2d793088f600f715f (diff) | |
download | samba-350352cf38bccfa6ef60db1840bd09a4798a392e.tar.gz samba-350352cf38bccfa6ef60db1840bd09a4798a392e.tar.bz2 samba-350352cf38bccfa6ef60db1840bd09a4798a392e.zip |
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
Diffstat (limited to 'source3/torture')
-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; } |