openbsd-ports/graphics/jasper/patches/patch-src_appl_jasper_c
espie 518be8dfb0 tidy up a few warnings.
with help from naddy@
2008-05-17 09:32:15 +00:00

16 lines
404 B
Plaintext

$OpenBSD: patch-src_appl_jasper_c,v 1.1 2008/05/17 09:32:16 espie Exp $
--- src/appl/jasper.c.orig Fri Jan 19 22:43:08 2007
+++ src/appl/jasper.c Fri May 16 22:47:48 2008
@@ -456,9 +456,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;
}