1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

Roll back PSTRING_SANCTIFY patch; just leave non-controversial type

and constness changes.
This commit is contained in:
Martin Pool
-
parent 1906903f06
commit cee0ec7274
5 changed files with 30 additions and 59 deletions

View File

@@ -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;
}