From 5402c1b9a0d8a1e61e1a3179ed694c6923e09990 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 20 Sep 2011 13:47:55 +0000 Subject: do not assign pointers to literal strings to variables that might be changed; from kristaps@ --- mdoc_man.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mdoc_man.c') diff --git a/mdoc_man.c b/mdoc_man.c index de62609f..f21a07ba 100644 --- a/mdoc_man.c +++ b/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.1 2011/09/17 15:00:51 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.2 2011/09/20 13:47:55 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