summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-20 21:29:32 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-20 21:29:32 +0000
commit54706f5b440482cc7ec19af33bc65fda9a0c1053 (patch)
tree4c80e4468a0bd261daced126c1de69f428ffac45
parent9c99863642d295e8b674c9c8b5eeda95bfc4d094 (diff)
downloadsamba-54706f5b440482cc7ec19af33bc65fda9a0c1053.tar.gz
samba-54706f5b440482cc7ec19af33bc65fda9a0c1053.tar.bz2
samba-54706f5b440482cc7ec19af33bc65fda9a0c1053.zip
fix slprintf for sunos4 in head branch
(This used to be commit 4aaf8b6a8bc521e738840fe72708add251eaaccb)
-rw-r--r--source3/lib/slprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/slprintf.c b/source3/lib/slprintf.c
index 1d18055643..4de7b10f4f 100644
--- a/source3/lib/slprintf.c
+++ b/source3/lib/slprintf.c
@@ -61,7 +61,8 @@ int vslprintf(char *str, int n, char *format, va_list ap)
}
}
- ret = vsprintf(buf, format, ap);
+ vsprintf(buf, format, ap);
+ ret = strlen(buf);
if (ret < 0) {
str[0] = 0;