[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34722 - libmicrohttpd/src/testspdy
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34722 - libmicrohttpd/src/testspdy |
Date: |
Sat, 20 Dec 2014 01:40:16 +0100 |
Author: grothoff
Date: 2014-12-20 01:40:16 +0100 (Sat, 20 Dec 2014)
New Revision: 34722
Modified:
libmicrohttpd/src/testspdy/test_proxies.c
Log:
-check fgetc rval even if feof said it wouldn't be EOF
Modified: libmicrohttpd/src/testspdy/test_proxies.c
===================================================================
--- libmicrohttpd/src/testspdy/test_proxies.c 2014-12-20 00:37:06 UTC (rev
34721)
+++ libmicrohttpd/src/testspdy/test_proxies.c 2014-12-20 00:40:16 UTC (rev
34722)
@@ -183,6 +183,7 @@
pid_t devnull;
char *cmd;
unsigned int i;
+ int retc;
char buf[strlen(EXPECTED_BODY) + 1];
close(1);
@@ -202,7 +203,10 @@
{
for (i = 0; i < strlen(EXPECTED_BODY) && !feof(p); i++)
{
- buf[i] = fgetc(p);
+ retc = fgetc (p);
+ if (EOF == retc)
+ abort (); /* what did feof(p) do there!? */
+ buf[i] = (char) retc;
}
pclose(p);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34722 - libmicrohttpd/src/testspdy,
gnunet <=