diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2016-02-15 12:59:47 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2016-02-15 13:02:57 +0100 |
commit | e1385f2083f782d7064db3c0059fcca45bfcb2a4 (patch) | |
tree | bb385d98a7afd467a29712c7a1cdd090efb3ed6f /plugin | |
parent | 3889b19f5414f689c8db98b81a19425629c98faa (diff) | |
download | mariadb-git-e1385f2083f782d7064db3c0059fcca45bfcb2a4.tar.gz |
fix buffer overrun
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/server_audit/server_audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/server_audit/server_audit.c b/plugin/server_audit/server_audit.c index 49a24f6c5b8..30b7cdb5dcb 100644 --- a/plugin/server_audit/server_audit.c +++ b/plugin/server_audit/server_audit.c @@ -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 |