X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=fd.c;h=763f756cdc3b5086ee9d26f432dbbfb760e02e4a;hb=a07746d8f55d0655510cad2448ef552288338c69;hp=800106e132b2bc21085f65803d70b6bad492f854;hpb=cdbc8067a2e27ee7f9e0d8ff11cf415603fc0558;p=paraslash.git diff --git a/fd.c b/fd.c index 800106e1..763f756c 100644 --- a/fd.c +++ b/fd.c @@ -269,7 +269,7 @@ int read_nonblock(int fd, void *buf, size_t sz, size_t *num_bytes) int read_pattern(int fd, const char *pattern, size_t bufsize) { size_t n, len; - char *buf = para_malloc(bufsize + 1); + char *buf = alloc(bufsize + 1); int ret = read_nonblock(fd, buf, bufsize, &n); buf[n] = '\0';