X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ffile.c;h=63d8dd2d857a2597b5817f21c7c309e2dc0c9e69;hb=7e9cb884492aec243337ffc8e4432a9ff2690956;hp=aab7e93e935cd49f10a2d6a6703deb3e09fa308a;hpb=549bba81e739ab10d8013c9ca88ce70b0ddda8e4;p=libguestfs.git diff --git a/daemon/file.c b/daemon/file.c index aab7e93..63d8dd2 100644 --- a/daemon/file.c +++ b/daemon/file.c @@ -97,18 +97,18 @@ do_cat (char *path) if (size >= alloc) { alloc += 8192; if (alloc > max) { - reply_with_error ("cat: %s: file is too large for message buffer", - path); - free (buf); - close (fd); - return NULL; + reply_with_error ("cat: %s: file is too large for message buffer", + path); + free (buf); + close (fd); + return NULL; } buf2 = realloc (buf, alloc); if (buf2 == NULL) { - reply_with_perror ("realloc"); - free (buf); - close (fd); - return NULL; + reply_with_perror ("realloc"); + free (buf); + close (fd); + return NULL; } buf = buf2; }