From 96e96a54469215ff37ff3abb52d4d46ea0ad1ed6 Mon Sep 17 00:00:00 2001 From: schwarze Date: Tue, 20 Sep 2011 13:47:59 +0000 Subject: do not assign pointers to literal strings to variables that might be changed; from kristaps@ --- usr.bin/mandoc/mdoc_man.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/mandoc/mdoc_man.c') diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index d4cdd5f2b41..af39f5ae68b 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.1 2011/09/17 14:45:22 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.2 2011/09/20 13:47:59 schwarze Exp $ */ /* * Copyright (c) 2011 Ingo Schwarze * @@ -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 *); -- cgit v1.2.3-59-g8ed1b