summaryrefslogtreecommitdiff
path: root/pppd
diff options
context:
space:
mode:
authorDavid F. Skoll <dfs@roaringpenguin.com>2002-01-14 15:31:34 +0000
committerDavid F. Skoll <dfs@roaringpenguin.com>2002-01-14 15:31:34 +0000
commitfcdb3f7ce6256f00c1e7ed31be6f1205b151c485 (patch)
treeae3956ca01dfa94b3c7fa20a9986b47d8f0cc339 /pppd
parent260a30f093332eb02afbba244f4c2aff6b059731 (diff)
downloadppp-fcdb3f7ce6256f00c1e7ed31be6f1205b151c485.tar.gz
Fixed reversal of arguments to strlcpy.
Diffstat (limited to 'pppd')
-rw-r--r--pppd/utils.c4
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;
}