]> git.cameronkatri.com Git - mandoc.git/blobdiff - mandoc.c
Correctly make quotes around `Lk' link-name argument. Noted by Aldis
[mandoc.git] / mandoc.c
index 69972c04dd560997ddcadd3ceaf46b31adb8b884..f63d7864df364b48a3c35fa0a60d1113789aa6f1 100644 (file)
--- a/mandoc.c
+++ b/mandoc.c
@@ -1,4 +1,4 @@
-/*     $Id: mandoc.c,v 1.25 2010/07/21 20:35:03 kristaps Exp $ */
+/*     $Id: mandoc.c,v 1.27 2010/07/25 19:05:59 joerg Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -109,6 +109,9 @@ mandoc_special(char *p)
                case ('\''):
                        term = '\'';
                        break;
+               case ('0'):
+                       i++;
+                       /* FALLTHROUGH */
                default:
                        len = 1;
                        p--;
@@ -334,7 +337,7 @@ mandoc_eos(const char *p, size_t sz, int enclosed)
                        found = 1;
                        break;
                default:
-                       return(found && (!enclosed || isalnum(*q)));
+                       return(found && (!enclosed || isalnum((unsigned char)*q)));
                }
        }