X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=fd.c;h=f7a2802a39db957c35f748af1faa96217a2580fe;hb=610cb53b94af8e95326cd44b7845f35cffdb6bf3;hp=33891d2e6c9f1c3568428b1df93b4b92e295ef61;hpb=89e0813c310816e05d22c0bfab7b1be07b3fc841;p=paraslash.git diff --git a/fd.c b/fd.c index 33891d2e..f7a2802a 100644 --- a/fd.c +++ b/fd.c @@ -286,7 +286,7 @@ int read_nonblock(int fd, void *buf, size_t sz, fd_set *rfds, size_t *num_bytes) int read_pattern(int fd, const char *pattern, size_t bufsize, fd_set *rfds) { size_t n, len; - char *buf = para_malloc(bufsize + 1); + char *buf = alloc(bufsize + 1); int ret = read_nonblock(fd, buf, bufsize, rfds, &n); buf[n] = '\0';