Commit 600ef4e7 authored by Jeff Garzik's avatar Jeff Garzik

use g_snprintf, eliminate need for string.h include string.h, for strlen

        * gtk/testdnd.c: use g_snprintf, eliminate need for string.h
        * gtk/testrgb.c: include string.h, for strlen
parent 6413a421
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
* gtk/testrgb.c: include string.h, for strlen
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
* configure.in: Add a case for success in
......
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
* gtk/testrgb.c: include string.h, for strlen
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
* configure.in: Add a case for success in
......
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
* gtk/testrgb.c: include string.h, for strlen
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
* configure.in: Add a case for success in
......
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
* gtk/testrgb.c: include string.h, for strlen
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
* configure.in: Add a case for success in
......
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
* gtk/testrgb.c: include string.h, for strlen
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
* configure.in: Add a case for success in
......
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
* gtk/testrgb.c: include string.h, for strlen
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
* configure.in: Add a case for success in
......
Thu Dec 10 02:21:16 1998 Jeff Garzik <jgarzik@pobox.com>
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
* gtk/testrgb.c: include string.h, for strlen
Wed Dec 9 17:39:26 1998 Owen Taylor <otaylor@redhat.com>
* configure.in: Add a case for success in
......
#include <string.h>
#include "gtk/gtk.h"
/* Target side drag signals */
......@@ -454,7 +453,7 @@ popup_cb (gpointer data)
for (j=0; j<3; j++)
{
char buffer[128];
sprintf(buffer, "%d,%d", i, j);
g_snprintf(buffer, sizeof(buffer), "%d,%d", i, j);
button = gtk_button_new_with_label (buffer);
gtk_table_attach (GTK_TABLE (table), button, i, i+1, j, j+1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
......
......@@ -24,6 +24,7 @@
#include <sys/time.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "gtk.h"
......
#include <string.h>
#include "gtk/gtk.h"
/* Target side drag signals */
......@@ -454,7 +453,7 @@ popup_cb (gpointer data)
for (j=0; j<3; j++)
{
char buffer[128];
sprintf(buffer, "%d,%d", i, j);
g_snprintf(buffer, sizeof(buffer), "%d,%d", i, j);
button = gtk_button_new_with_label (buffer);
gtk_table_attach (GTK_TABLE (table), button, i, i+1, j, j+1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
......
......@@ -24,6 +24,7 @@
#include <sys/time.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "gtk.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment