diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-20 21:29:32 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-20 21:29:32 +0000 |
commit | 4aaf8b6a8bc521e738840fe72708add251eaaccb (patch) | |
tree | 9b36da53a147a4584b9dbdf6a0f24d6b9a30cc51 /source/lib/slprintf.c | |
parent | 8e11d542eebe076d74ab264e22b87f7aed9bbe8f (diff) | |
download | samba-4aaf8b6a8bc521e738840fe72708add251eaaccb.tar.gz samba-4aaf8b6a8bc521e738840fe72708add251eaaccb.tar.xz samba-4aaf8b6a8bc521e738840fe72708add251eaaccb.zip |
fix slprintf for sunos4 in head branch
Diffstat (limited to 'source/lib/slprintf.c')
-rw-r--r-- | source/lib/slprintf.c | 3 |
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; |