$OpenBSD: patch-options_c,v 1.1 2003/06/20 13:41:50 avsm Exp $
--- options.c.orig	Fri Jan 12 07:09:37 1996
+++ options.c	Fri Jun 20 14:32:14 2003
@@ -335,22 +335,22 @@ cfg_redir(buff, inso)
 	if (proto_tcp == -1)
 	   proto_tcp = 1;
 	
-	if (sscanf(buff, "%d%*[to \t]%256[^:]:%256s", &port, str, str2) == 3) {
+	if (sscanf(buff, "%d%*[to \t]%255[^:]:%255s", &port, str, str2) == 3) {
 		if ((laddr = inet_addr(str)) == -1) {
 			lprint("Error: Bad address: %s\r\n", buff);
 			return CFG_ERROR;
 		}
-	} else if (sscanf(buff, "%d%*[to \t]%256s", &port, str2) == 2) {
+	} else if (sscanf(buff, "%d%*[to \t]%255s", &port, str2) == 2) {
 		if (inso)
 		   laddr = inso->so_laddr.s_addr;
 		else
 		   laddr = inet_addr(CTL_LOCAL);
-	} else if (sscanf(buff, "%256[^:]:%256s", str, str2) == 2) {
+	} else if (sscanf(buff, "%255[^:]:%255s", str, str2) == 2) {
 		if ((laddr = inet_addr(str)) == -1) {
 			lprint("Error: Bad address: %s\r\n", buff);
 			return CFG_ERROR;
 		}
-	} else if (sscanf(buff, "%256s", str2) == 1) {
+	} else if (sscanf(buff, "%255s", str2) == 1) {
 		if (inso)
 		   laddr = inso->so_laddr.s_addr;
 		else
@@ -514,7 +514,7 @@ cfg_add_exec(buff, inso)
 	int x;
 	u_int32_t laddr;
 	
-	if (sscanf(buff, "%256[^:]:%256[^:]:%256s", str, str2, str3) == 3) {
+	if (sscanf(buff, "%255[^:]:%255[^:]:%255s", str, str2, str3) == 3) {
 		/* XXX should check if address == special address */
 		x = get_port(str3, 1);
 		if (x < 0)
@@ -530,7 +530,7 @@ cfg_add_exec(buff, inso)
 			return CFG_ERROR;
 		} else
 			lprint("Adding execution of %s to address %s, port %d\r\n", str, str2, x);
-	} else if (sscanf(buff, "%256[^:]:%256s", str, str3) == 2) {
+	} else if (sscanf(buff, "%255[^:]:%255s", str, str3) == 2) {
 		x = get_port(str3, 1);
 		if (x < 0)
 		   return CFG_ERROR;
@@ -598,7 +598,7 @@ cfg_shell(buff, inso)
 	
 	if (exec_shell)
 	   free(exec_shell);
-	sscanf(buff, "%256s", str);
+	sscanf(buff, "%255s", str);
 	exec_shell = (char *)strdup(str);
 	
 	return CFG_OK;