mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Reworked the estream memory buffer allocation.
Committed already posted patches for the v2 card.
This commit is contained in:
parent
19cb96e5d3
commit
d8d1ca6151
8 changed files with 111 additions and 71 deletions
|
@ -671,6 +671,9 @@ readn (int fd, void *buf, size_t buflen, size_t *nread)
|
|||
while (nleft > 0)
|
||||
{
|
||||
#ifdef USE_GNU_PTH
|
||||
# ifdef HAVE_W32_SYSTEM
|
||||
# error Cannot use pth_read here because it expects a system HANDLE.
|
||||
# endif
|
||||
n = pth_read (fd, buf, nleft);
|
||||
#else
|
||||
n = read (fd, buf, nleft);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue