Removed trailing \n from error_msg{,_and_die} messages.
diff --git a/dc.c b/dc.c
index d462100..122673a 100644
--- a/dc.c
+++ b/dc.c
@@ -14,14 +14,14 @@
static void push(double a)
{
if (pointer >= (sizeof(stack) / sizeof(*stack)))
- error_msg_and_die("stack overflow\n");
+ error_msg_and_die("stack overflow");
stack[pointer++] = a;
}
static double pop()
{
if (pointer == 0)
- error_msg_and_die("stack underflow\n");
+ error_msg_and_die("stack underflow");
return stack[--pointer];
}
@@ -120,7 +120,7 @@
}
o++;
}
- error_msg_and_die("%s: syntax error.\n", argument);
+ error_msg_and_die("%s: syntax error.", argument);
}
/* return pointer to next token in buffer and set *buffer to one char