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
fixed a bug in the hlink code - it wasn't taking account of the new
[rsync/rsync.git]
/
util.c
diff --git
a/util.c
b/util.c
index
4d293f2
..
013d62a
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-162,7
+162,13
@@
int piped_child(char **command,int *f_in,int *f_out)
void out_of_memory(char *str)
{
void out_of_memory(char *str)
{
- fprintf(FERROR,"out of memory in %s\n",str);
+ fprintf(FERROR,"ERROR: out of memory in %s\n",str);
+ exit_cleanup(1);
+}
+
+void overflow(char *str)
+{
+ fprintf(FERROR,"ERROR: buffer overflow in %s\n",str);
exit_cleanup(1);
}
exit_cleanup(1);
}