X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/31e125226d429c2f6df010a9277bb9ebfdc2cf54..dd04a03440be7c04ec7c3005d5fd92ec03311358:/util.c diff --git a/util.c b/util.c index 4d293f22..013d62ad 100644 --- 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) { - 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); }