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 | b4eae8cbebefaa28ecd1d44d10a319c79a7bb16c (patch) | |
tree | ba08d67f27f0350517ae94b4393d8da4191c1f4f /mixlib/mix_vm_command.c | |
parent | 7768d3c3ade49b2307049e7d308ead409f4a7d1d (diff) | |
download | mdk-b4eae8cbebefaa28ecd1d44d10a319c79a7bb16c.tar.gz mdk-b4eae8cbebefaa28ecd1d44d10a319c79a7bb16c.tar.bz2 |
portability fix: snprintf -> g_snprintf
Diffstat (limited to 'mixlib/mix_vm_command.c')
-rw-r--r-- | mixlib/mix_vm_command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mixlib/mix_vm_command.c b/mixlib/mix_vm_command.c index 77005e5..81e0bb6 100644 --- a/mixlib/mix_vm_command.c +++ b/mixlib/mix_vm_command.c @@ -1,9 +1,9 @@ /* -*-c-*- -------------- mix_vm_command.c : * Implementation of the functions declared in mix_vm_command.h * ------------------------------------------------------------------ - * $Id: mix_vm_command.c,v 1.26 2001/09/16 22:32:12 jao Exp $ + * $Id: mix_vm_command.c,v 1.27 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 @@ -631,7 +631,7 @@ mix_vm_cmd_dispatcher_get_src_file_line (const mix_vm_cmd_dispatcher_t *dis, enum {BUFF_SIZE = 256}; static gchar BUFFER[BUFF_SIZE]; int len = - snprintf (BUFFER, BUFF_SIZE, "%s", mix_src_file_get_line (file, line)); + g_snprintf (BUFFER, BUFF_SIZE, "%s", mix_src_file_get_line (file, line)); if (len > 0 && BUFFER[len - 1] == '\n') BUFFER[len - 1] = '\0'; return BUFFER; } |