openbsd-ports/comms/conserver/patches/patch-conserver_group_c
sthen 29f3197b55 Update conserver to 8.1.16, which fixes some bugs, rolls in
pvalchev's strcpy->strlcpy diffs, and adds some new functionality
(see http://www.conserver.com/CHANGES for more details).
Our /etc/services now includes a definition for conserver,
so no need to mention it in the package installation message.

ok pvalchev (maintainer).
2008-06-21 11:29:25 +00:00

27 lines
756 B
Plaintext

$OpenBSD: patch-conserver_group_c,v 1.3 2008/06/21 11:29:25 sthen Exp $
--- conserver/group.c.orig Mon Apr 2 19:18:59 2007
+++ conserver/group.c Fri Oct 12 12:03:25 2007
@@ -2505,7 +2505,7 @@ TelOpt(o)
if (o < sizeof(telopts) / sizeof(char *))
return telopts[o];
else {
- sprintf(opt, "%d", o);
+ snprintf(opt, sizeof(opt), "%d", o);
return opt;
}
}
@@ -3839,11 +3839,9 @@ DoClientRead(pGE, pCLServing)
"failed]\r\n", -1);
continue;
}
- if (TAB3 == (TABDLY & sbuf.c_oflag)) {
- sbuf.c_oflag &= ~TABDLY;
- sbuf.c_oflag |= TAB0;
+ if (TAB3 & sbuf.c_oflag) {
+ sbuf.c_oflag &= ~TAB3;
} else {
- sbuf.c_oflag &= ~TABDLY;
sbuf.c_oflag |= TAB3;
}
if (-1 ==