aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-03-04 02:13:58 -0300
committerdequis <dx@dxzone.com.ar>2015-03-04 20:01:39 -0300
commite6f47fb583ff077982c7321e3b699d749d787d6d (patch)
tree552507dc42f0e92fc30a9c1f5ba9046d91cea22a
parent56985aa93f09bef1400d41d6d79959dea4fa56d4 (diff)
help: Increase read buffer size from 1100 to 2048
This fixes "Error opening helpfile." that was introduced by the rawreply commit, which made the help string for "help set commands" larger than 1100 bytes, making the strstr(s, "\n%\n") condition fail I have absolutely no idea why it was 1100 to begin with. It's been like that since the first revision. 2048 is arbitrary too, but it's nicer. Needless to say, the help.c code needs to be reviewed more deeply, at least. Could also use that opportunity to get rid of the xmlto/xslt crap. Not going to do that right now, i don't want to add more bugs.
-rw-r--r--help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/help.c b/help.c
index ac0a4ede..65f2ba47 100644
--- a/help.c
+++ b/help.c
@@ -29,7 +29,7 @@
#undef read
#undef write
-#define BUFSIZE 1100
+#define BUFSIZE 2048
help_t *help_init(help_t **help, const char *helpfile)
{