Fixed memory corruption by the initialization of 'FsRtlLegalAnsiCharacterArray'
authorshort <>
Sat, 18 Jan 2003 11:16:42 +0000 (11:16 +0000)
committershort <>
Sat, 18 Jan 2003 11:16:42 +0000 (11:16 +0000)
src/libcaptive/fs/name.c

index a8cab2c..a06921c 100644 (file)
@@ -45,6 +45,7 @@ guint ui;
         * with 'signed char' (but also with 'unsigned char'). See also memcpy(3) below.
         */
        captive_new0n(array,0x80+0x100);
+       array+=0x80;
 
        for (ui=0;ui<0x100;ui++) {
 UCHAR f=0;