fix buffer overrun

This commit is contained in:
Vladislav Vaintroub 2016-02-15 12:59:47 +01:00
parent 3889b19f54
commit e1385f2083

View file

@ -2849,7 +2849,7 @@ void __attribute__ ((constructor)) audit_plugin_so_init(void)
}
memset(locinfo_ini_value, 'O', sizeof(locinfo_ini_value)-1);
locinfo_ini_value[sizeof(locinfo_ini_value)]= 0;
locinfo_ini_value[sizeof(locinfo_ini_value)-1]= 0;
exit:
#ifdef _WIN32