$OpenBSD: patch-src_appl_jasper_c,v 1.2 2017/12/14 00:23:28 jca Exp $
Index: src/appl/jasper.c
--- src/appl/jasper.c.orig
+++ src/appl/jasper.c
@@ -473,9 +473,9 @@ int addopt(char *optstr, int maxlen, char *s)
 		return 1;
 	}
 	if (n > 0) {
-		strcat(optstr, "\n");
+		strlcat(optstr, "\n", maxlen+1);
 	}
-	strcat(optstr, s);
+	strlcat(optstr, s, maxlen+1);
 	return 0;
 }
 
