refacotring 2?
[pspp] / src / ui / gui / psppire-format.c
index c44684050fc534232a0a6ee9c3d4f3b7c593c870..1dde74fb0085638260bb2e1cdf5e2559465192ad 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2012 Free Software Foundation
+   Copyright (C) 2012, 2022 Free Software Foundation
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
 #include <config.h>
 #include "ui/gui/psppire-format.h"
+#include "ui/gui/glibfix.h"
 
 static gpointer
 psppire_format_copy (gpointer boxed)
 {
   struct fmt_spec *format = boxed;
-  return g_memdup (format, sizeof *format);
+  return g_memdup2 (format, sizeof *format);
 }
 
 static void