diff options
Diffstat (limited to 'lib/libc/gen/unvis.c')
-rw-r--r-- | lib/libc/gen/unvis.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/unvis.c b/lib/libc/gen/unvis.c index d00d527b5aa..8982ca50647 100644 --- a/lib/libc/gen/unvis.c +++ b/lib/libc/gen/unvis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unvis.c,v 1.14 2010/08/24 23:49:06 djm Exp $ */ +/* $OpenBSD: unvis.c,v 1.15 2011/03/13 22:21:32 guenther Exp $ */ /*- * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -73,6 +73,10 @@ unvis(char *cp, char c, int *astate, int flag) case S_START: switch(c) { + case '-': + *cp = 0; + *astate = S_GROUND; + return (0); case '\\': *cp = c; *astate = S_GROUND; |