Fixed memory corruption by the initialization of 'FsRtlLegalAnsiCharacterArray'
[captive.git] / 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;