Commit e1385f20 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix buffer overrun

parent 3889b19f
...@@ -2849,7 +2849,7 @@ void __attribute__ ((constructor)) audit_plugin_so_init(void) ...@@ -2849,7 +2849,7 @@ void __attribute__ ((constructor)) audit_plugin_so_init(void)
} }
memset(locinfo_ini_value, 'O', sizeof(locinfo_ini_value)-1); 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: exit:
#ifdef _WIN32 #ifdef _WIN32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment