This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new c4a1e91  Switch to a safer snprintf(), makes compilers more happy
c4a1e91 is described below

commit c4a1e913e2d75abcb5a3566a8e1fbc0831265797
Author: Leif Hedstrom <[email protected]>
AuthorDate: Sun May 27 09:10:16 2018 -0600

    Switch to a safer snprintf(), makes compilers more happy
---
 plugins/experimental/mysql_remap/lib/iniparser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/experimental/mysql_remap/lib/iniparser.c 
b/plugins/experimental/mysql_remap/lib/iniparser.c
index bb9b3e7..a06b6d0 100644
--- a/plugins/experimental/mysql_remap/lib/iniparser.c
+++ b/plugins/experimental/mysql_remap/lib/iniparser.c
@@ -646,7 +646,7 @@ iniparser_load(const char *ininame)
       break;
 
     case LINE_VALUE:
-      sprintf(tmp, "%s:%s", section, key);
+      snprintf(tmp, sizeof(tmp), "%s:%s", section, key);
       errs = dictionary_set(dict, tmp, val);
       break;
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to