mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r7265: fixed d_printf() so it works again.
Jelmer, can you give me a hint as to why you changed this? It
completely broke smbclient, and the change now makes d_printf() almost
equivalent to printf() as you removed the language translation
code. See your commit 7166.
Did you intend to reenable language handling by some other method? Or
do you just mean to remove it completely?
(This used to be commit 2e293ab06f
)
This commit is contained in:
parent
b7b7c46eb4
commit
89bcaa79c9
@ -35,12 +35,12 @@ int d_vfprintf(FILE *f, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
|
||||
{
|
||||
char *p, *p2;
|
||||
int ret, maxlen, clen;
|
||||
char *msgstr;
|
||||
va_list ap2;
|
||||
|
||||
/* do any message translations */
|
||||
VA_COPY(ap2, ap);
|
||||
|
||||
ret = vasprintf(&p, msgstr, ap2);
|
||||
ret = vasprintf(&p, format, ap2);
|
||||
|
||||
if (ret <= 0) return ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user