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 /mixlib/xmix_vm_handlers.c | |
parent | 6923e0f864b77944bc2d5d30c21d3fb89765b8a2 (diff) | |
download | mdk-fe26b7c09f86650d19b4be388c155af081388a67.tar.gz mdk-fe26b7c09f86650d19b4be388c155af081388a67.tar.bz2 |
portability fix: snprintf -> g_snprintf
Diffstat (limited to 'mixlib/xmix_vm_handlers.c')
-rw-r--r-- | mixlib/xmix_vm_handlers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mixlib/xmix_vm_handlers.c b/mixlib/xmix_vm_handlers.c index 2938bfc..e5bf909 100644 --- a/mixlib/xmix_vm_handlers.c +++ b/mixlib/xmix_vm_handlers.c @@ -1,9 +1,9 @@ /* -*-c-*- -------------- xmix_vm_handlers.c : * Implementation of the functions declared in xmix_vm_handlers.h * ------------------------------------------------------------------ - * $Id: xmix_vm_handlers.c,v 1.4 2001/09/17 23:26:43 jao Exp $ + * $Id: xmix_vm_handlers.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 @@ -1274,11 +1274,11 @@ cmd_pbt_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg) if (line && file) { int j = 0; - snprintf (BUFFER, SIZE, "%s", mix_src_file_get_line (file, line)); + g_snprintf (BUFFER, SIZE, "%s", mix_src_file_get_line (file, line)); while (!isspace (BUFFER[j])) j++; BUFFER[j] = '\0'; } - if (strlen (BUFFER) == 0) snprintf (BUFFER, SIZE, "%d", address); + if (strlen (BUFFER) == 0) g_snprintf (BUFFER, SIZE, "%d", address); fprintf (dis->out, "#%d\t%s\tin %s%s:%d\n", k, BUFFER, name, MIX_SRC_DEFEXT, line); ++k; |