diff options
Diffstat (limited to 'zwgc/formatter.c')
-rw-r--r-- | zwgc/formatter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zwgc/formatter.c b/zwgc/formatter.c index f834b30..50c5f9a 100644 --- a/zwgc/formatter.c +++ b/zwgc/formatter.c @@ -20,6 +20,7 @@ static char rcsid_formatter_c[] = "$Id$"; #include <stdio.h> #include <ctype.h> +#include <string.h> #include "new_memory.h" #include "char_stack.h" #include "string_dictionary.h" @@ -286,7 +287,7 @@ string verbatim(str) temp=lbreak(&str,allmaskable_set); while(*str) { - bracketnum=(int) (index(brackets,str[0])-brackets); + bracketnum=(int) (strchr(brackets,str[0])-brackets); temp=string_Concat2(temp,openbracket[bracketnum]); temp=string_Concat2(temp,temp2=lany(&str," ")); free(temp2); |