diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-09-12 09:50:32 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-09-12 09:50:32 +0000 |
commit | dd37f97a862be2eb3b277eedea80d6a4fd42719f (patch) | |
tree | d209d830192c4f3e011149c169d0c8e5c628aa4e /usr.bin/tmux | |
parent | 2c98bd94179faa79d880be3373e0ac0de7787d66 (diff) |
fix a wrong computation in session_readline() where the length of line was
deduced from the buffer size prior and after evbuffer_readline() call. the
problem is that this accounts for the characters which evbuffer_readline()
removed and we do not know how many they were (\n, \r\n ..). fix just does
a strlen() call of line which is a bit slower but way safer.
This could very well fix the broken headers issue some people reported
Diffstat (limited to 'usr.bin/tmux')
0 files changed, 0 insertions, 0 deletions