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_types.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'mixlib/mix_types.c') 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