From 819dd2d28711c00b7df49661f7ffd3ed975cd3c7 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 24 Oct 2010 21:02:32 -0500 Subject: [PATCH] parse(): make reentrant --- src/parse.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/parse.c b/src/parse.c index c4f4c21d8..5ff29f052 100644 --- a/src/parse.c +++ b/src/parse.c @@ -45,11 +45,6 @@ static struct Dictionary *cmd_dict = NULL; struct Dictionary *alias_dict = NULL; -/* - * NOTE: parse() should not be called recursively by other functions! - */ -static char *sender; - /* parv[0] is not used, and parv[LAST] == NULL */ static char *para[MAXPARA + 2]; @@ -117,12 +112,13 @@ string_to_array(char *string, char **parv) /* parse() * - * given a raw buffer, parses it and generates parv, parc and sender + * given a raw buffer, parses it and generates parv and parc */ void parse(struct Client *client_p, char *pbuffer, char *bufend) { struct Client *from = client_p; + char *sender; char *ch; char *s; char *end;