Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
this is a large commit which adds io multiplexing, thus giving error
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
0442004
..
5b16fc4
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-633,7
+633,7
@@
int vslprintf(char *str, int n, const char *format, va_list ap)
buf = malloc(len);
if (!buf) {
/* can't call debug or we would recurse */
- exit(1);
+ exit
_cleanup
(1);
}
}
@@
-641,7
+641,7
@@
int vslprintf(char *str, int n, const char *format, va_list ap)
ret = strlen(buf);
if (ret > n) {
/* yikes! */
- exit(1);
+ exit
_cleanup
(1);
}
buf[ret] = 0;
@@
-663,3
+663,4
@@
int slprintf(char *str, int n, char *format, ...)
va_end(ap);
return ret;
}
+