From 34940cc59d658e50484f05ad11abe848ad724526 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Fri, 23 Mar 2012 16:07:02 +0100 Subject: [PATCH] We need to fix `anno -list -number'. Seems anno needs some more rework. --- uip/anno.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uip/anno.c b/uip/anno.c index fbabfd4..1512823 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -167,7 +167,11 @@ main(int argc, char **argv) if (strcmp(*argp, "all") == 0) number = -1; else if (!(number = atoi(*argp))) - adios(NULL, "missing argument to %s", argp[-2]); + /* FIXME: fails for + ** `-list -number l:10' + ** but okay if we add `all'. + */ + adios(NULL, "missing argument to %s", argp[-1]); argp++; } -- 1.7.10.4