summaryrefslogtreecommitdiffstats
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
commit4aaf8b6a8bc521e738840fe72708add251eaaccb (patch)
tree9b36da53a147a4584b9dbdf6a0f24d6b9a30cc51
parent8e11d542eebe076d74ab264e22b87f7aed9bbe8f (diff)
downloadsamba-4aaf8b6a8bc521e738840fe72708add251eaaccb.tar.gz
samba-4aaf8b6a8bc521e738840fe72708add251eaaccb.tar.xz
samba-4aaf8b6a8bc521e738840fe72708add251eaaccb.zip
fix slprintf for sunos4 in head branch
-rw-r--r--source/lib/slprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/slprintf.c b/source/lib/slprintf.c
index 1d180556437..4de7b10f4fe 100644
--- a/source/lib/slprintf.c
+++ b/source/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;