X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-keypad.c;h=84107c743ab89302d6972a12b6a96c2bf87fa014;hb=724be9e4720784aafeac395b3f6df47a89fc5e07;hp=19b8cabf4ebee05b24ef8fe82041120da35d3e8a;hpb=6e22b03f96f0edbace5bce45abdc57e94cf6957c;p=pspp diff --git a/src/ui/gui/psppire-keypad.c b/src/ui/gui/psppire-keypad.c index 19b8cabf4e..84107c743a 100644 --- a/src/ui/gui/psppire-keypad.c +++ b/src/ui/gui/psppire-keypad.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2010 Free Software Foundation, Inc. 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 @@ -15,10 +15,7 @@ along with this program. If not, see . */ #include -#include -#include -#include -#include +#include #include #include "psppire-keypad.h" @@ -339,7 +336,7 @@ psppire_keypad_init (PsppireKeypad *kp) { int j = i - 1; char buf[5]; - snprintf (buf, 5, "%d", i); + g_snprintf (buf, 5, "%d", i); kp->digit[i] = gtk_button_new_with_label (buf); if ( i == 0 )