Fixed buffer overflow.

This commit is contained in:
Uwe Bonnes 2004-04-30 18:34:34 +00:00 committed by Alexandre Julliard
parent 89450e7cbd
commit 6ebf8b494c
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ void VOLUME_CreateDevices(void)
int i, count = 0; int i, count = 0;
if (!(buffer = HeapAlloc( GetProcessHeap(), 0, if (!(buffer = HeapAlloc( GetProcessHeap(), 0,
strlen(config_dir) + sizeof("/dosdevices") + 3 ))) strlen(config_dir) + sizeof("/dosdevices/a::") )))
return; return;
strcpy( buffer, config_dir ); strcpy( buffer, config_dir );