mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-27 21:11:51 +02:00
BUFSIZ is variable, we need *exactly* 1024
Using BUFSIZ in sbuf is not OK. It's variable, and in various places we assume that sbuf is 1024 (like handle_cgi_reply). We could patch those, but we aren't sure BUFSIZ is >= 1024! Let's keep the hardcoded number. (found by debugging on arch on amd64, where BUFSIZ is bigger)
This commit is contained in:
parent
5e3285d52e
commit
9356f61a63
2
gmid.h
2
gmid.h
@ -171,7 +171,7 @@ struct client {
|
|||||||
const char *meta;
|
const char *meta;
|
||||||
int fd, pfd;
|
int fd, pfd;
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
char sbuf[BUFSIZ];
|
char sbuf[1024];
|
||||||
ssize_t len, off;
|
ssize_t len, off;
|
||||||
struct sockaddr_storage addr;
|
struct sockaddr_storage addr;
|
||||||
struct vhost *host; /* host she's talking to */
|
struct vhost *host; /* host she's talking to */
|
||||||
|
Loading…
Reference in New Issue
Block a user