examples: Fix libevent-server which could not send error reply

This commit is contained in:
Tatsuhiro Tsujikawa 2014-06-18 13:11:01 +09:00
parent 85a43cfa66
commit ae74a18624
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ static int error_reply(nghttp2_session *session,
writelen = write(pipefd[1], ERROR_HTML, sizeof(ERROR_HTML) - 1);
close(pipefd[1]);
if(writelen != sizeof(ERROR_HTML)) {
if(writelen != sizeof(ERROR_HTML) - 1) {
close(pipefd[0]);
return -1;
}