From 9ab667435526bc335a72331892bd1987c0ef5472 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Wed, 22 Feb 2012 17:40:25 -0200 Subject: [PATCH] [xmp] Fix format list counter Signed-off-by: Claudio Matsuoka --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index be4ff89..d3a60ec 100644 --- a/src/options.c +++ b/src/options.c @@ -183,7 +183,7 @@ void get_options(int argc, char **argv, struct options *options) int i; xmp_get_format_list(&list); for (i = 0; list[i] != NULL; i++) { - printf("%d:%s\n", i, list[i]); + printf("%d:%s\n", i + 1, list[i]); } exit(EXIT_SUCCESS); break; }