Use g_memdup2() where available and add fallback for older GLib versions
Size is constant here, so no problem in any case, but g_memdup() is now deprecated and we don't want deprecation warnings.
Edited by Tim-Philipp Müller
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Size is constant here, so no problem in any case, but g_memdup() is now deprecated and we don't want deprecation warnings.