ports/print/hplip/patches/patch-prnt_cupsext_cupsext_c

15 lines
513 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Backwards memcpy, triggered by changing default page size in hp-toolbox
Index: prnt/cupsext/cupsext.c
--- prnt/cupsext/cupsext.c.orig
+++ prnt/cupsext/cupsext.c
@@ -1226,7 +1226,7 @@ PyObject *removeOption(PyObject *self, PyObject *args)
if (j < g_num_options)
{
- memcpy((g_options + j), (g_options + j + 1),
+ memmove((g_options + j), (g_options + j + 1),
sizeof(cups_option_t) * (g_num_options - j));
r = 1;