diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-04 06:45:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:33 -0500 |
commit | 89bcaa79c9181e42a7aaae3ca7e95d01eba203a2 (patch) | |
tree | b55d6f50b8cbe28ed88c29638d808d42975ed012 | |
parent | b7b7c46eb48cc531e9e96bae97bfa7c3533c74d8 (diff) | |
download | samba-89bcaa79c9181e42a7aaae3ca7e95d01eba203a2.tar.gz samba-89bcaa79c9181e42a7aaae3ca7e95d01eba203a2.tar.bz2 samba-89bcaa79c9181e42a7aaae3ca7e95d01eba203a2.zip |
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 2e293ab06f8b84ef8cf5aafde1715fa21b2bbef0)
-rw-r--r-- | source4/lib/dprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/dprintf.c b/source4/lib/dprintf.c index 6653fa4242..64227148fd 100644 --- a/source4/lib/dprintf.c +++ b/source4/lib/dprintf.c @@ -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; |