X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_screen.c;h=5bcce5f35ad79e00d8be0e336744d52216e5840c;hb=f85803e7bc2d0612763bdb8548c7060ddb542afb;hp=66c17e170636bca59e87e7e3aa27aca104d497cf;hpb=31f07ec3818f4ece09327401019d137140a3bae4;p=xonotic%2Fdarkplaces.git diff --git a/cl_screen.c b/cl_screen.c index 66c17e17..5bcce5f3 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -954,7 +954,8 @@ void R_TimeReport(const char *desc) t = (int) ((r_timereport_current - r_timereport_temp) * 1000000.0 + 0.5); length = dpsnprintf(tempbuf, sizeof(tempbuf), "%8i %s", t, desc); - length = min(length, (int)sizeof(tempbuf) - 1); + if (length < 0) + length = (int)sizeof(tempbuf) - 1; if (r_speeds_longestitem < length) r_speeds_longestitem = length; for (;length < r_speeds_longestitem;length++)