Commit 623de8bb 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 57f6beab
......@@ -24,7 +24,7 @@ static BOOL is_a_logfile(char *name) {
r = strncmp(&name[0], "log", 3);
if (r!=0) goto not_logfile;
// 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);
if (r!=1) goto not_logfile;
// 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