On Sun, 9 Aug 2009, Junio C Hamano wrote: > + if (numbered) { > + static char num_buf[64]; > rev.total = total + start_number - 1; > + sprintf(num_buf, "%d", rev.total); > + rev.num_width = strlen(num_buf); > + } why not if (numbered) { rev.total = total + start_number - 1; rev.num_width = snprintf(NULL, 0, "%d", rev.total); } ? Tony. -- f.anthony.n.finch <dot@xxxxxxxx> http://dotat.at/ GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS. MODERATE OR GOOD. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html