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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user