Skip to content

Commit

Permalink
Merge pull request xdebug#29 from igalic/xdebug_2_2
Browse files Browse the repository at this point in the history
Fix -Wformat-security issue
  • Loading branch information
derickr committed Jul 20, 2012
2 parents bf15c7d + 3017acc commit 1835a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdebug_tracing.c
Expand Up @@ -449,7 +449,7 @@ void xdebug_stop_trace(TSRMLS_D)
if (XG(trace_format) == 0 || XG(trace_format) == 1) { if (XG(trace_format) == 0 || XG(trace_format) == 1) {
u_time = xdebug_get_utime(); u_time = xdebug_get_utime();
tmp = xdebug_sprintf(XG(trace_format) == 0 ? "%10.4f " : "\t\t\t%f\t", u_time - XG(start_time)); 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); xdfree(tmp);
#if HAVE_PHP_MEMORY_USAGE #if HAVE_PHP_MEMORY_USAGE
fprintf(XG(trace_file), XG(trace_format) == 0 ? "%10zu" : "%lu", XG_MEMORY_USAGE()); fprintf(XG(trace_file), XG(trace_format) == 0 ? "%10zu" : "%lu", XG_MEMORY_USAGE());
Expand Down

0 comments on commit 1835a80

Please sign in to comment.