From fed604bfa368a2bb1fed414e368d491e4c7d7005 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 16 Jan 2002 02:42:07 +0000 Subject: Roll back PSTRING_SANCTIFY patch; just leave non-controversial type and constness changes. (This used to be commit cee0ec72746122c962e6c5278a736266a7f2c424) --- source3/lib/util_str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/util_str.c') diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index b1d50ad911..dbfaf179a1 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -945,7 +945,7 @@ int pstr_sprintf(pstring s, const char *fmt, ...) int ret; va_start(ap, fmt); - ret = vsnprintf(PSTR_MUTABLE(s), PSTRING_LEN, fmt, ap); + ret = vsnprintf(s, PSTRING_LEN, fmt, ap); va_end(ap); return ret; } @@ -958,7 +958,7 @@ int fstr_sprintf(fstring s, const char *fmt, ...) int ret; va_start(ap, fmt); - ret = vsnprintf(FSTR_MUTABLE(s), FSTRING_LEN, fmt, ap); + ret = vsnprintf(s, FSTRING_LEN, fmt, ap); va_end(ap); return ret; } -- cgit