aboutsummaryrefslogtreecommitdiff
path: root/miscutils/dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/dc.c')
-rw-r--r--miscutils/dc.c6
1 files changed, 3 insertions, 3 deletions
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)
179 */ 179 */
180static char *get_token(char **buffer) 180static char *get_token(char **buffer)
181{ 181{
182 char *start = NULL; 182 char *start = NULL;
183 char *current = *buffer; 183 char *current;
184 184
185 while (isspace(*current)) { current++; } 185 current = skip_whitespace(*buffer);
186 if (*current != 0) { 186 if (*current != 0) {
187 start = current; 187 start = current;
188 while (!isspace(*current) && *current != 0) { current++; } 188 while (!isspace(*current) && *current != 0) { current++; }