From 75ae1437397af2d4c7d16d0d11952c87105c582e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 9 Jul 2016 15:26:58 +0100 Subject: Resolves: tdf#71064 failed to open display with -h but not --help when there is no DISPLAY set Change-Id: Ic4f10d6f4781d01a05e51862b41311a2c1a3dc66 --- desktop/unx/source/args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/unx/source') diff --git a/desktop/unx/source/args.c b/desktop/unx/source/args.c index 34d3064abd16..19301f5948f1 100644 --- a/desktop/unx/source/args.c +++ b/desktop/unx/source/args.c @@ -101,7 +101,7 @@ Args *args_parse (void) if (arg[0] != '-') continue; - while (length > 2 && arg[0] == '-') { + while (length > 1 && arg[0] == '-') { arg++; length--; } -- cgit