From 47577586791888d23b729e5547a699f399030f92 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 22 Oct 2006 03:08:33 +0000 Subject: [PATCH] STABLE14-dauth-dpass-20061021 FIXES 42182 off by one error --- src/dauth/dpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dauth/dpass.c b/src/dauth/dpass.c index 1a2a17c5d..37ec50a2b 100644 --- a/src/dauth/dpass.c +++ b/src/dauth/dpass.c @@ -109,7 +109,7 @@ CommandProc(as, arock) cell_p); } else { strncpy(cell, cellinfo.name, sizeof(cell) - 1); - cell[sizeof(cell)] = '\0'; + cell[sizeof(cell)-1] = '\0'; cell_p = cell; } } else { -- 2.39.5