# $OpenBSD: patch-parse_cmd_linec,v 1.2 2003/06/18 12:18:12 naddy Exp $
--- parse_cmd_line.c.orig	Thu Jun 19 11:06:28 1997
+++ parse_cmd_line.c	Wed Jun 18 14:13:14 2003
@@ -21,6 +21,7 @@
 /* parse_cmd_line.c:	modify setup according to command line parameters */
 /* ---------------------------------------------------------------------- */
 
+#include <ctype.h>
 #include "pop3-gw.h"
 
 
@@ -34,11 +35,11 @@ void parse_cmd_line(int argc, char *argv
 	
 	
 	/* there is always at least 1 arg and that's the name of the program */
-	strncpy(log_id, argv[0], maxlen);
+	strlcpy(log_id, argv[0], maxlen);
 
 	/* arguments must be in the form <id><value>, without blanks in between */
 	while (count < argc) {
-		strncpy(value, argv[count]+1, MAX_IO_LEN);
+		strlcpy(value, argv[count]+1, MAX_IO_LEN);
 		if (strlen(value) != 0)
 			switch (*argv[count]) {
 				case 'd':	if (ispunct(value[0]))
