From: Wilfried Göesgens Date: Sat, 27 Feb 2010 12:45:01 +0000 (+0000) Subject: * ups, forgot to commit this; make memreadline const X-Git-Tag: v7.86~369 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=e31fb7953c019d35b0a892389d4c5063b86be473 * ups, forgot to commit this; make memreadline const --- 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;