From a5cc743cd621433509bdbc008e691b749a825de1 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Thu, 7 May 2015 21:39:50 +0200 Subject: [PATCH] Fix "-l -". --- macro11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macro11.c b/macro11.c index 30bf8f7..21fbcd8 100644 --- a/macro11.c +++ b/macro11.c @@ -235,7 +235,8 @@ int main( } else if (!stricmp(cp, "l")) { /* The option -l gives the listing file name (.LST) */ /* -l - enables listing to stdout. */ - if(arg >= argc-1 || *argv[arg+1] == '-') { + if(arg >= argc-1 || + (argv[arg+1][0] == '-' && argv[arg+1][1] != '\0')) { usage("-l must be followed by the listing file name (- for standard output)\n"); } lstname = argv[++arg];