diff stream/http.c @ 30941:fb3bde3ec3a8

Change type to uint8_t to avoid checks depending on char signedness.
author reimar
date Fri, 02 Apr 2010 07:14:21 +0000
parents 304b762b62cb
children 9494acd724a9
line wrap: on
line diff
--- a/stream/http.c	Thu Apr 01 17:37:51 2010 +0000
+++ b/stream/http.c	Fri Apr 02 07:14:21 2010 +0000
@@ -125,7 +125,7 @@
   metalen = tmp * 16;
   if (metalen > 0) {
     int i;
-    char *info = malloc(metalen + 1);
+    uint8_t *info = malloc(metalen + 1);
     unsigned nlen = my_read(fd, info, metalen, sc);
     // avoid breaking the user's terminal too much
     if (nlen > 256) nlen = 256;