(keyword_print): Substract 1 from length of symbol name, accounting
authorMarius Vollmer <mvo@zagadka.de>
Mon, 4 Jun 2001 22:17:17 +0000 (22:17 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 4 Jun 2001 22:17:17 +0000 (22:17 +0000)
for the silly dash.

libguile/keywords.c

index a3819c6..53f457c 100644 (file)
@@ -62,8 +62,8 @@ static int
 keyword_print (SCM exp, SCM port, scm_print_state *pstate)
 {
   scm_puts ("#:", port);
-  scm_print_symbol_name (1 + SCM_SYMBOL_CHARS (SCM_CDR (exp)),
-                        SCM_SYMBOL_LENGTH (SCM_CDR (exp)),
+  scm_print_symbol_name (SCM_SYMBOL_CHARS (SCM_CDR (exp)) + 1,
+                        SCM_SYMBOL_LENGTH (SCM_CDR (exp)) - 1,
                         port);
   return 1;
 }