diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2002-04-09 23:28:19 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2002-04-09 23:28:19 +0000 |
commit | fe26b7c09f86650d19b4be388c155af081388a67 (patch) | |
tree | 64cc907a55db92938bb7f3b555ca5cfdb7a93516 /mixgtk/mixgtk_input.c | |
parent | 6923e0f864b77944bc2d5d30c21d3fb89765b8a2 (diff) | |
download | mdk-fe26b7c09f86650d19b4be388c155af081388a67.tar.gz mdk-fe26b7c09f86650d19b4be388c155af081388a67.tar.bz2 |
portability fix: snprintf -> g_snprintf
Diffstat (limited to 'mixgtk/mixgtk_input.c')
-rw-r--r-- | mixgtk/mixgtk_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mixgtk/mixgtk_input.c b/mixgtk/mixgtk_input.c index 6a04a75..a516ced 100644 --- a/mixgtk/mixgtk_input.c +++ b/mixgtk/mixgtk_input.c @@ -1,9 +1,9 @@ /* -*-c-*- -------------- mixgtk_input.c : * Implementation of the functions declared in mixgtk_input.h * ------------------------------------------------------------------ - * Last change: Time-stamp: "01/04/01 15:24:36 jose" + * $Id: mixgtk_input.c,v 1.5 2002/04/09 23:28:19 jao Exp $ * ------------------------------------------------------------------ - * Copyright (C) 2001 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002 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 @@ -72,13 +72,13 @@ set_word_ (mix_word_t word) gint k; gint val = mix_word_magnitude (word); gboolean neg = mix_word_is_negative (word); - snprintf (BUFFER, SIZE, "%s%d", neg ? "-" : "", val); + g_snprintf (BUFFER, SIZE, "%s%d", neg ? "-" : "", val); gtk_entry_set_text (GTK_ENTRY (childs_[DEC_]), BUFFER); gtk_entry_set_text (GTK_ENTRY (childs_[SIGN_]), neg ? "-" : "+"); for (k = 1; k < 6; ++k) { mix_byte_t b = mix_word_get_byte (word, k); - snprintf (BUFFER, SIZE, "%d", (int)b); + g_snprintf (BUFFER, SIZE, "%d", (int)b); gtk_entry_set_text (GTK_ENTRY (childs_[SIGN_ + k]), BUFFER); } } |