From b6b8309bf93ad1c03cf1e9f2ec8634ea2542c289 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 5 Feb 2007 09:53:14 +1100 Subject: [PATCH] Fix an off-by-one in the handling of the -d option to rpc.gssd https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/76409 --- utils/gssd/gssd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c index a362974..9988fe4 100644 --- a/utils/gssd/gssd.c +++ b/utils/gssd/gssd.c @@ -122,7 +122,7 @@ main(int argc, char *argv[]) break; case 'd': strncpy(ccachedir, optarg, sizeof(ccachedir)); - if (ccachedir[sizeof(ccachedir-1)] != '\0') + if (ccachedir[sizeof(ccachedir)-1] != '\0') errx(1, "ccachedir path name too long"); break; default: -- 2.39.5