summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-16 02:42:07 +0000
committerMartin Pool <mbp@samba.org>2002-01-16 02:42:07 +0000
commitfed604bfa368a2bb1fed414e368d491e4c7d7005 (patch)
tree06157b6c9fda86e3ec5ecd1448ab6534eb7ec19c /source3/lib
parent978f1ba98d91851a04facef76b9ea9adaf4add3e (diff)
downloadsamba-fed604bfa368a2bb1fed414e368d491e4c7d7005.tar.gz
samba-fed604bfa368a2bb1fed414e368d491e4c7d7005.tar.bz2
samba-fed604bfa368a2bb1fed414e368d491e4c7d7005.zip
Roll back PSTRING_SANCTIFY patch; just leave non-controversial type
and constness changes. (This used to be commit cee0ec72746122c962e6c5278a736266a7f2c424)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
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;
}