Skip to content

Commit

Permalink
fix buffer overrun
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Feb 15, 2016
1 parent 3889b19 commit e1385f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/server_audit/server_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1385f2

Please sign in to comment.