diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-09 19:22:56 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-09 19:22:56 +0000 |
commit | c92be367f7c707418fe2a4beb17688dffa614781 (patch) | |
tree | ad1bf921cea730c33b344ec8d7a420a9c758d32d /libmandoc.h | |
parent | a560a18cf09008f29e00db4014ecd394727489c8 (diff) | |
download | mandoc-c92be367f7c707418fe2a4beb17688dffa614781.tar.gz |
Squash bug noted by Ulrich Spoerlein where "-" were being converted to
ASCII_HYPH, as per normal, but were screwing up mandoc_special(). Fixed
by making mandoc_special() first check isspace() instead of ! isgraph(),
then normalise its string as it passes out. This require de-constifying
some validation routines not already de-constified (those in libman),
but that's ok, because I'd like to be pushing actions into validation
routines to save on space and redundant calculations.
Diffstat (limited to 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmandoc.h b/libmandoc.h index eb18dff4..a7c2ffa1 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -19,7 +19,7 @@ __BEGIN_DECLS -int mandoc_special(const char *); +int mandoc_special(char *); void *mandoc_calloc(size_t, size_t); char *mandoc_strdup(const char *); void *mandoc_malloc(size_t); |