X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fwidget-io.c;h=3771cad6454a6e8598427dd0834139184ec31f27;hb=8ef8acb7c70a321963d30f2264e8f91e16427fcf;hp=e64719907f8ecb910f62efabd2e6604cc9ce6524;hpb=ef35211c05259417e4f3dd4a7de44e92e4bc54a3;p=pspp-builds.git diff --git a/src/ui/gui/widget-io.c b/src/ui/gui/widget-io.c index e6471990..3771cad6 100644 --- a/src/ui/gui/widget-io.c +++ b/src/ui/gui/widget-io.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007 Free Software Foundation + Copyright (C) 2007, 2009 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 @@ -26,6 +26,7 @@ #include +#include "xalloc.h" /* Create a GtkLabel and pack it into BOX. The label is created using part of the string at S, and the directives @@ -90,7 +91,7 @@ widget_printf (const gchar *fmt, ...) if ( 0 != printf_parse (fmt, &d, &a) ) return NULL; - widgets = calloc (sizeof (*widgets), d.count); + widgets = xcalloc (sizeof (*widgets), d.count); va_start (ap, fmt); for (i = 0 ; i < d.count ; ++i ) {