summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index a7755a4..b4d2400 100644
--- a/socket.c
+++ b/socket.c
@@ -722,6 +722,7 @@ struct msg *mp;
char *args[MAXARGS];
register int n;
register char **pp = args, *p = mp->m.create.line;
+ char buf[20];
nwin = nwin_undef;
n = mp->m.create.nargs;
@@ -731,7 +732,6 @@ struct msg *mp;
if (n)
{
int l, num;
- char buf[20];
l = strlen(p);
if (IsNumColon(p, 10, buf, sizeof(buf)))
@@ -1528,7 +1528,7 @@ static void PasswordProcessInput __P((char *, int));
struct pwdata {
int l;
- char buf[20 + 1];
+ char buf[MAXLOGINLEN + 1];
struct msg m;
};