]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_argv.c
Fix a typo that caused a non-constant string
[mandoc.git] / mdoc_argv.c
index 8689ab86fb3a77b9809e99a290362c8ac2c7d11e..db4c63f0d6d24f97445b8d2f2dc1dcccd79025f3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_argv.c,v 1.114 2017/05/05 15:17:32 schwarze Exp $ */
+/*     $Id: mdoc_argv.c,v 1.115 2017/05/30 16:22:03 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -555,14 +555,14 @@ args(struct roff_man *mdoc, int line, int *pos,
                        if ( ! (mdoc->flags & MDOC_PHRASE))
                                mandoc_msg(MANDOCERR_ARG_QUOTE,
                                    mdoc->parse, line, *pos, NULL);
-                       return ARGS_QWORD;
+                       return ARGS_WORD;
                }
 
                mdoc->flags &= ~MDOC_PHRASELIT;
                buf[(*pos)++] = '\0';
 
                if ('\0' == buf[*pos])
-                       return ARGS_QWORD;
+                       return ARGS_WORD;
 
                while (' ' == buf[*pos])
                        (*pos)++;
@@ -571,7 +571,7 @@ args(struct roff_man *mdoc, int line, int *pos,
                        mandoc_msg(MANDOCERR_SPACE_EOL, mdoc->parse,
                            line, *pos, NULL);
 
-               return ARGS_QWORD;
+               return ARGS_WORD;
        }
 
        p = &buf[*pos];