Commit 4711f8df authored by Yoni Fogel's avatar Yoni Fogel

Removed non-literal format from snprintf

git-svn-id: file:///svn/toku/tokudb@19552 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3f35cb89
...@@ -24,7 +24,7 @@ static BOOL is_a_logfile(char *name) { ...@@ -24,7 +24,7 @@ static BOOL is_a_logfile(char *name) {
r = strncmp(&name[0], "log", 3); r = strncmp(&name[0], "log", 3);
if (r!=0) goto not_logfile; if (r!=0) goto not_logfile;
// check number // check number
r = snprintf(&num_str[0], len-11, &name[3]); r = snprintf(&num_str[0], len-11, "%s", &name[3]);
r = sscanf(num_str, "%lld", &num); r = sscanf(num_str, "%lld", &num);
if (r!=1) goto not_logfile; if (r!=1) goto not_logfile;
// check '.tokulog' // check '.tokulog'
......
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