From fcdb3f7ce6256f00c1e7ed31be6f1205b151c485 Mon Sep 17 00:00:00 2001 From: "David F. Skoll" Date: Mon, 14 Jan 2002 15:31:34 +0000 Subject: [PATCH] Fixed reversal of arguments to strlcpy. --- pppd/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pppd/utils.c b/pppd/utils.c index 43ed317..935f562 100644 --- a/pppd/utils.c +++ b/pppd/utils.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: utils.c,v 1.16 2002/01/11 18:27:17 etbe Exp $" +#define RCSID "$Id: utils.c,v 1.17 2002/01/14 15:31:34 dfs Exp $" #include #include @@ -821,7 +821,7 @@ lock(dev) result = mklock (dev, (void *) 0); if (result == 0) { - strlcpy(lock_file, sizeof(lock_file), dev); + strlcpy(lock_file, dev, sizeof(lock_file)); return 0; } -- 2.39.2