diff options
author | David F. Skoll <dfs@roaringpenguin.com> | 2002-01-14 15:31:34 +0000 |
---|---|---|
committer | David F. Skoll <dfs@roaringpenguin.com> | 2002-01-14 15:31:34 +0000 |
commit | fcdb3f7ce6256f00c1e7ed31be6f1205b151c485 (patch) | |
tree | ae3956ca01dfa94b3c7fa20a9986b47d8f0cc339 /pppd | |
parent | 260a30f093332eb02afbba244f4c2aff6b059731 (diff) | |
download | ppp-fcdb3f7ce6256f00c1e7ed31be6f1205b151c485.tar.gz |
Fixed reversal of arguments to strlcpy.
Diffstat (limited to 'pppd')
-rw-r--r-- | pppd/utils.c | 4 |
1 files 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 <stdio.h> #include <ctype.h> @@ -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; } |