[cairo-commit] 2 commits - src/cairo-pdf-surface.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Sep 2 05:49:07 UTC 2023
src/cairo-pdf-surface.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 7a06f65d9bd048dfef0c4d7ff9622c29f5010698
Merge: 764558622 50c5f3cc7
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sat Sep 2 05:49:05 2023 +0000
Merge branch 'bobby285271/fix-format-security' into 'master'
Fix building with -Werror=format-security
See merge request cairo/cairo!508
commit 50c5f3cc7633710707760b54561073d736588861
Author: Bobby Rong <rjl931189261 at 126.com>
Date: Sat Sep 2 00:46:45 2023 +0000
Fix building with -Werror=format-security
../src/cairo-pdf-surface.c: In function '_cairo_pdf_surface_open_content_stream':
../src/cairo-pdf-surface.c:2537:45: error: format not a string literal and no format arguments [-Werror=format-security]
2537 | str);
| ^~~
cc1: some warnings being treated as errors
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 459f90a8f..50f4daa57 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -2534,6 +2534,7 @@ _cairo_pdf_surface_open_content_stream (cairo_pdf_surface_t *surface,
_cairo_pdf_surface_open_stream (surface,
resource,
surface->compress_streams,
+ "%s",
str);
free (str);
free (data);
More information about the cairo-commit
mailing list