From 0cce65056ac58af6e8435905239ffa482008b5f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 5 Apr 2009 13:54:40 +0000 Subject: [PATCH] DEVEL15-windows-test-torture-stack-overflow-20090405 LICENSE MIT avoid stack overflow. (cherry picked from commit ac199c845e6771c627dfb5e7efc0cdd8c5356df9) --- src/WINNT/tests/torture/Source/nbio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WINNT/tests/torture/Source/nbio.c b/src/WINNT/tests/torture/Source/nbio.c index b00cac1732..85a9b4b8a7 100644 --- a/src/WINNT/tests/torture/Source/nbio.c +++ b/src/WINNT/tests/torture/Source/nbio.c @@ -83,7 +83,7 @@ int FindHandle(int handle) int nb_unlink(char *fname) { int rc; - char temp[256]; + char temp[512]; char FileName[128]; pstring path; @@ -98,7 +98,7 @@ int nb_unlink(char *fname) if (!rc) { LeaveThread(0, "", CMD_UNLINK); - sprintf(temp, "FILE: DeleteFile %s failed GLE(0x%x)\n", fname, GetLastError()); + sprintf(temp, "FILE: DeleteFile %s failed GLE(0x%x)\n", path, GetLastError()); if (verbose) printf("%s", temp); LogMessage(ProcessNumber, HostName, FileName, temp, LogID); @@ -949,7 +949,7 @@ static int total_deleted; void delete_fn(file_info *finfo, const char *name, void *state) { int rc; - char temp[256]; + char temp[512]; char s[1024]; char FileName[128]; @@ -1002,7 +1002,7 @@ int nb_deltree(char *dname) if (!rc) { char FileName[256]; - char temp[128]; + char temp[512]; int rc; rc = GetLastError();