summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorjaortega <jaortega>2001-03-13 22:21:16 +0000
committerjaortega <jaortega>2001-03-13 22:21:16 +0000
commit3ab6797d68162c6094964ad0c5c7e194bee06b80 (patch)
treee81f7121a98cbddb5509a0e10631c409a89b62d6 /mixlib
parentde46b4f1ddd7ed43bf8988e65234c9e33ef1e51d (diff)
downloadmdk-3ab6797d68162c6094964ad0c5c7e194bee06b80.tar.gz
mdk-3ab6797d68162c6094964ad0c5c7e194bee06b80.tar.bz2
minor changes
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix.c6
-rw-r--r--mixlib/mix_types.c13
2 files changed, 10 insertions, 9 deletions
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 */