$OpenBSD: patch-src_appl_jasper_c,v 1.3 2021/05/23 19:28:08 sthen Exp $

Index: src/appl/jasper.c
--- src/appl/jasper.c.orig
+++ src/appl/jasper.c
@@ -471,9 +471,9 @@ int addopt(char *optstr, int maxlen, const 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;
 }
 
