From d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 25 Oct 2006 12:46:03 +0000 Subject: use skip_whitespace where appropriate --- miscutils/dc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'miscutils') diff --git a/miscutils/dc.c b/miscutils/dc.c index fd5390143..7b6405754 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -179,10 +179,10 @@ static void stack_machine(const char *argument) */ static char *get_token(char **buffer) { - char *start = NULL; - char *current = *buffer; + char *start = NULL; + char *current; - while (isspace(*current)) { current++; } + current = skip_whitespace(*buffer); if (*current != 0) { start = current; while (!isspace(*current) && *current != 0) { current++; } -- cgit v1.2.3