aboutsummaryrefslogtreecommitdiffstats
path: root/main/ghostscript/fix-sprintf.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-29 08:14:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-29 08:16:43 +0000
commit4699b3f4afcbff3f21d10212808d57b482396b89 (patch)
tree31a18c3294131346e58ddef95c0deb50e269324b /main/ghostscript/fix-sprintf.patch
parent6e5fc4ef645cf0c86d29d5624975686d50053e2f (diff)
downloadaports-4699b3f4afcbff3f21d10212808d57b482396b89.tar.bz2
aports-4699b3f4afcbff3f21d10212808d57b482396b89.tar.xz
main/ghostscript: upgrade to 9.19
Diffstat (limited to 'main/ghostscript/fix-sprintf.patch')
-rw-r--r--main/ghostscript/fix-sprintf.patch58
1 files changed, 5 insertions, 53 deletions
diff --git a/main/ghostscript/fix-sprintf.patch b/main/ghostscript/fix-sprintf.patch
index a37303ef6c..5a06af5620 100644
--- a/main/ghostscript/fix-sprintf.patch
+++ b/main/ghostscript/fix-sprintf.patch
@@ -1,56 +1,8 @@
---- ./cups/gdevcups.c.orig
-+++ ./cups/gdevcups.c
-@@ -1042,7 +1042,7 @@
-
- for (i = 0; i < 16; i ++)
- {
-- sprintf(name, "cupsInteger%d", i);
-+ snprintf(name, sizeof(name), "cupsInteger%d", i);
- if ((code = param_write_int(plist, strdup(name),
- (int *)(cups->header.cupsInteger + i))) < 0)
- return (code);
-@@ -1050,7 +1050,7 @@
-
- for (i = 0; i < 16; i ++)
- {
-- sprintf(name, "cupsReal%d", i);
-+ snprintf(name, sizeof(name), "cupsReal%d", i);
- if ((code = param_write_float(plist, strdup(name),
- cups->header.cupsReal + i)) < 0)
- return (code);
-@@ -1058,7 +1058,7 @@
-
- for (i = 0; i < 16; i ++)
- {
-- sprintf(name, "cupsString%d", i);
-+ snprintf(name, sizeof(name), "cupsString%d", i);
- param_string_from_transient_string(s, cups->header.cupsString[i]);
- if ((code = param_write_string(plist, strdup(name), &s)) < 0)
- return (code);
-@@ -3184,19 +3184,19 @@
-
- for (i = 0; i < 16; i ++)
- {
-- sprintf(name, "cupsInteger%d", i);
-+ snprintf(name, sizeof(name), "cupsInteger%d", i);
- intoption(cupsInteger[i],strdup(name), unsigned)
- }
-
- for (i = 0; i < 16; i ++)
- {
-- sprintf(name, "cupsReal%d", i);
-+ snprintf(name, sizeof(name), "cupsReal%d", i);
- floatoption(cupsReal[i], strdup(name))
- }
-
- for (i = 0; i < 16; i ++)
- {
-- sprintf(name, "cupsString%d", i);
-+ snprintf(name, sizeof(name), "cupsString%d", i);
- stringoption(cupsString[i], strdup(name))
- }
-
-@@ -4271,10 +4271,10 @@
+diff --git a/cups/gdevcups.c b/cups/gdevcups.c
+index c00e758..35b4035 100644
+--- a/cups/gdevcups.c
++++ b/cups/gdevcups.c
+@@ -4353,10 +4353,10 @@ cups_set_color_info(gx_device *pdev) /* I - Device info */
*/
if (pdev->HWResolution[0] != pdev->HWResolution[1])