Compare commits

...

2 Commits

Author SHA1 Message Date
rsync-bugs
4f189177dc preparing for release of 2.0.6 1998-05-16 00:57:37 +00:00
Andrew Tridgell
f72399f867 fixed handling of vsprintf on SunOS 1998-05-16 00:46:16 +00:00
2 changed files with 8 additions and 15 deletions

21
util.c
View File

@@ -637,22 +637,15 @@ int vslprintf(char *str, int n, const char *format, va_list ap)
}
}
ret = vsprintf(buf, format, ap);
if (ret < 0) {
str[0] = 0;
return -1;
vsprintf(buf, format, ap);
ret = strlen(buf);
if (ret > n) {
/* yikes! */
exit(1);
}
if (ret < n) {
n = ret;
} else if (ret > n) {
ret = -1;
}
buf[n] = 0;
buf[ret] = 0;
memcpy(str, buf, n+1);
memcpy(str, buf, ret+1);
return ret;
#endif

View File

@@ -1 +1 @@
#define VERSION "2.0.5"
#define VERSION "2.0.6"