openbsd-ports/print/cups-pdf/patches/patch-src_cups-pdf_c
jasper 60443e9b3e - update to 2.5.1
- fix homepage
- specify license version
- fix path to gs

from gleydson soares
2011-03-31 08:25:58 +00:00

13 lines
454 B
Plaintext

$OpenBSD: patch-src_cups-pdf_c,v 1.4 2011/03/31 08:25:58 jasper Exp $
--- src/cups-pdf.c.orig Wed Mar 30 10:06:50 2011
+++ src/cups-pdf.c Wed Mar 30 10:11:01 2011
@@ -518,7 +518,7 @@ static int preparespoolfile(FILE *fpsrc, char *spoolfi
}
else {
if (conf.label) {
- strcpy(buffer, title);
+ strlcpy(buffer, title, sizeof(buffer));
if (conf.label == 2)
snprintf(title, BUFSIZE, "%s-job_%i", buffer, job);
else