hysteria

ii wrapper script
git clone git://git.2f30.org/hysteria.git
Log | Files | Refs | README | LICENSE

commit ea8b6791b4406cf0e89c0ed15c54b091b194056a
parent 5ef5a7a33165a38d4750015245e68c0f3617b206
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu May  8 20:13:40 +0000

highlight.c: change BUFSIZ to a hardcoded value

BUFSIZ is generally > 512, but it's specified it should be atleast 256
bytes. To be sure just hardcode it to 1024.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
highlight.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/highlight.c b/highlight.c @@ -59,7 +59,7 @@ printalign(const char *s, size_t len, size_t maxlen) { int main(void) { - char buffer[BUFSIZ]; + char buffer[1024]; /* should be atleast 512 bytes + datetime prefix */ regmatch_t match; const char *p, *search; int hasmatch, ret;