From 3ab6797d68162c6094964ad0c5c7e194bee06b80 Mon Sep 17 00:00:00 2001 From: jaortega Date: Tue, 13 Mar 2001 22:21:16 +0000 Subject: minor changes --- mixlib/mix.c | 6 +++--- mixlib/mix_types.c | 13 +++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'mixlib') diff --git a/mixlib/mix.c b/mixlib/mix.c index db41bf2..305bb65 100644 --- a/mixlib/mix.c +++ b/mixlib/mix.c @@ -48,12 +48,12 @@ mix_release_lib (void) } const char *MIX_GPL_LICENSE = -"Copyright (C) 2000 Free Software Foundation, Inc.\n" -"This program is free software; you can redistribute it and/or modify\n" +"Copyright (C) 2000, 2001 Free Software Foundation, Inc.\n" +"GNU MDK is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" -"This program is distributed in the hope that it will be useful,\n" +"GNU MDK is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" diff --git a/mixlib/mix_types.c b/mixlib/mix_types.c index 79e0bb6..40246cd 100644 --- a/mixlib/mix_types.c +++ b/mixlib/mix_types.c @@ -479,13 +479,14 @@ mix_word_print_to_file (mix_word_t word, const char *message, FILE *f) void mix_word_print_to_buffer (mix_word_t word, gchar *buf) { - guint k; g_return_if_fail (buf != NULL); - sprintf (buf, "%s ", mix_word_sign (word) == 0 ? "+" : "-"); - for ( k = 1; k < 6; ++k ) { - sprintf (buf + 2 + 3 * (k -1), "%02d ", mix_word_get_byte (word,k)); - } - /* sprintf (buf, "(%010ld)", mix_word_magnitude (word));*/ + sprintf (buf, "%s %02d %02d %02d %02d %02d", + mix_word_sign (word) == 0 ? "+" : "-", + mix_word_get_byte (word, 1), + mix_word_get_byte (word, 2), + mix_word_get_byte (word, 3), + mix_word_get_byte (word, 4), + mix_word_get_byte (word, 5)); } /* Conversions between words and shorts */ -- cgit v1.2.3