Permalink
Browse files

Merge pull request #29 from igalic/xdebug_2_2

Fix -Wformat-security issue
  • Loading branch information...
2 parents bf15c7d + 3017acc commit 1835a805e5f9bd65e34c94760d31170d65f603a3 @derickr committed Jul 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xdebug_tracing.c
View
@@ -449,7 +449,7 @@ void xdebug_stop_trace(TSRMLS_D)
if (XG(trace_format) == 0 || XG(trace_format) == 1) {
u_time = xdebug_get_utime();
tmp = xdebug_sprintf(XG(trace_format) == 0 ? "%10.4f " : "\t\t\t%f\t", u_time - XG(start_time));
- fprintf(XG(trace_file), tmp);
+ fprintf(XG(trace_file), "%s", tmp);
xdfree(tmp);
#if HAVE_PHP_MEMORY_USAGE
fprintf(XG(trace_file), XG(trace_format) == 0 ? "%10zu" : "%lu", XG_MEMORY_USAGE());

0 comments on commit 1835a80

Please sign in to comment.