Re: svn commit: rev 3248 - trunk/subversion/include trunk/subversion/libsvn_subr
From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-09-30 00:35:18 CEST
mbk@tigris.org writes:
> +svn_error_t *
apr_err has not been set
> + "pipe: could not read from peer");
This is not very robust. It doesn't produce an error if there are no
> + }
Why use a stack buffer? Why not read into data directly?
> + apr_size_t len = sizeof(buf);
Then the memcpy is not needed.
> + total += len;
Why not use apr_file_read_full and eliminate the loop altogether?
> +
-- Philip Martin --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Mon Sep 30 00:35:50 2002 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.