void-packages/srcpkgs/zathura/patches/fix-buffer-overflow.patch

14 lines
388 B
Diff

diff --git a/zathura/utils.c b/zathura/utils.c
index b4b058f..6e1910e 100644
--- a/zathura/utils.c
+++ b/zathura/utils.c
@@ -401,7 +401,7 @@ rectangle_to_points(void* vrect, void* vlist) {
static void
append_unique_uint(girara_list_t* list, const unsigned int v) {
- double* p = g_try_malloc(sizeof(v));
+ double* p = g_try_malloc(sizeof(*p));
if (p == NULL) {
return;
}