summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-09-20 13:47:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-09-20 13:47:55 +0000
commit5636e76b60167512ce24afe65e9de4fa112c10e4 (patch)
treee9d8848d088a0da08ddabccf4322d6b80212c57f
parent90ee934d1309a0871b08fdb50a27fffcb1c6019e (diff)
downloadmandoc-5636e76b60167512ce24afe65e9de4fa112c10e4.tar.gz
do not assign pointers to literal strings
to variables that might be changed; from kristaps@
-rw-r--r--mdoc_man.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index dbadb796..3792426b 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -31,8 +31,8 @@ struct manact {
int (*cond)(DECL_ARGS);
int (*pre)(DECL_ARGS);
void (*post)(DECL_ARGS);
- char *prefix;
- char *suffix;
+ const char *prefix;
+ const char *suffix;
};
static void print_word(const char *);