Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix -Wformat-security issue

  • Loading branch information...
commit 3017acc77cc3347f42d6099d8592c55eba61d791 1 parent bf15c7d
@igalic igalic authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xdebug_tracing.c
View
2  xdebug_tracing.c
@@ -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 3017acc

Please sign in to comment.
Something went wrong with that request. Please try again.