Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix -Wformat-security issue

  • Loading branch information...
commit 3017acc77cc3347f42d6099d8592c55eba61d791 1 parent bf15c7d
Igor Galić authored July 19, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xdebug_tracing.c
2  xdebug_tracing.c
@@ -449,7 +449,7 @@ void xdebug_stop_trace(TSRMLS_D)
449 449
 		if (XG(trace_format) == 0 || XG(trace_format) == 1) {
450 450
 			u_time = xdebug_get_utime();
451 451
 			tmp = xdebug_sprintf(XG(trace_format) == 0 ? "%10.4f " : "\t\t\t%f\t", u_time - XG(start_time));
452  
-			fprintf(XG(trace_file), tmp);
  452
+			fprintf(XG(trace_file), "%s", tmp);
453 453
 			xdfree(tmp);
454 454
 #if HAVE_PHP_MEMORY_USAGE
455 455
 			fprintf(XG(trace_file), XG(trace_format) == 0 ? "%10zu" : "%lu", XG_MEMORY_USAGE());

0 notes on commit 3017acc

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