aboutsummaryrefslogtreecommitdiff
path: root/miscutils/dc.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-25 12:46:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-25 12:46:03 +0000
commitd18a3a20dbafc4023b1c636b4e9b4bb80902c1e8 (patch)
tree5f3775e14e05880c7977402384756e6ca3102096 /miscutils/dc.c
parentc8400a216206a848f6c4b83b668df37f6fb546ee (diff)
downloadbusybox-w32-d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8.tar.gz
busybox-w32-d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8.tar.bz2
busybox-w32-d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8.zip
use skip_whitespace where appropriate
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++; }