author | Olivier Marin <dkr@freesurf.fr> | |
Fri, 27 Jun 2008 00:18:48 +0000 (02:18 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 29 Jun 2008 03:55:26 +0000 (20:55 -0700) | ||
commit | 861d1af36ae168353fc352126c0bf2d189c2324a | |
tree | 4880b0f1d550b10cb1b9975b4a25a99e12414119 | tree | snapshot |
parent | 8813df9066427ffe40d1d77d18f20643f396f153 | commit | diff |
show_stats(): fix stats width calculation
Before this patch, name_width becomes negative or null for width values
less than 15 and name_width values greater than 25 (default: 50). This
leads to output random data.
This patch checks for minimal width and name_width values.
Signed-off-by: Olivier Marin <dkr@freesurf.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Before this patch, name_width becomes negative or null for width values
less than 15 and name_width values greater than 25 (default: 50). This
leads to output random data.
This patch checks for minimal width and name_width values.
Signed-off-by: Olivier Marin <dkr@freesurf.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | diff | blob | history |