From e31fb7953c019d35b0a892389d4c5063b86be473 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sat, 27 Feb 2010 12:45:01 +0000 Subject: [PATCH] * ups, forgot to commit this; make memreadline const --- libcitadel/lib/tools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcitadel/lib/tools.c b/libcitadel/lib/tools.c index dc9652777..bffa6e56a 100644 --- a/libcitadel/lib/tools.c +++ b/libcitadel/lib/tools.c @@ -629,10 +629,10 @@ int is_msg_in_sequence_set(const char *mset, long msgnum) { * \param maxlen Size of string buffer * \return Pointer to the source memory right after we stopped reading. */ -char *memreadline(char *start, char *buf, int maxlen) +const char *memreadline(const char *start, char *buf, int maxlen) { char ch; - char *ptr; + const char *ptr; int len = 0; /**< tally our own length to avoid strlen() delays */ ptr = start; -- 2.30.2