23 lines
817 B
Plaintext
23 lines
817 B
Plaintext
$OpenBSD: patch-src_main_connections_c,v 1.6 2007/10/07 17:54:54 mbalmer Exp $
|
|
--- src/main/connections.c.orig Wed Sep 5 00:13:27 2007
|
|
+++ src/main/connections.c Sun Oct 7 09:58:19 2007
|
|
@@ -1964,7 +1964,7 @@ static int text_vfprintf(Rconnection con, const char *
|
|
b = R_alloc(res + already + 1, sizeof(char));
|
|
strcpy(b, this->lastline);
|
|
p = b + already;
|
|
- vsprintf(p, format, ap);
|
|
+ vsnprintf(p, res + already + 1, format, ap);
|
|
} else if(res < 0) { /* just a failure indication -- e.g. Windows */
|
|
#define NBUFSIZE (already + 100*BUFSIZE)
|
|
usedRalloc = TRUE;
|
|
@@ -3888,7 +3888,8 @@ static Rboolean gzcon_open(Rconnection con)
|
|
|
|
if(con->canread) {
|
|
/* read header */
|
|
- char c, ccc, method, flags, dummy[6];
|
|
+ signed char c;
|
|
+ char ccc, method, flags, dummy[6];
|
|
unsigned char head[2];
|
|
uInt len;
|
|
|