1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-05 17:28:47 +00:00

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

View File

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