]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-tests-torture-20090226
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 26 Feb 2009 17:47:44 +0000 (17:47 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 26 Feb 2009 17:47:44 +0000 (17:47 +0000)
LICENSE MIT

create a file of the specified size

(cherry picked from commit ab0691760f4cdd2fe8bded4700d051ea1ba51856)

src/WINNT/tests/torture/Source/nbio.c

index a773132101f5db204c70ce1d0fa3be4bd687dd40..b00cac173254b1e5364a94dfc967d142c5cd4aa9 100644 (file)
@@ -312,7 +312,7 @@ int nb_CreateFile(char *path, DWORD size)
     }
     EndFirstTimer(CMD_CREATEFILE, 1);
     Moved = SetFilePointer(fHandle,
-                           size - sizeof(buffer) <= 0 ? 0 : size - sizeof(buffer),
+                           size - sizeof(Buffer) <= 0 ? 0 : size - sizeof(Buffer),
                            NULL,
                            FILE_BEGIN);
     memset(Buffer, 'A', sizeof(Buffer));