diff options
author | Denis Vlasenko | 2009-04-03 21:13:31 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-04-03 21:13:31 +0000 |
commit | cc8289dc0498d50734770d06601756f7ddc55168 (patch) | |
tree | 4cb2b67a14d5aa6bc4a46cc14cf612d647f00752 /shell/math.c | |
parent | 60b392fd5bd49af2813b3970940e75516bf1e5dd (diff) | |
download | busybox-cc8289dc0498d50734770d06601756f7ddc55168.zip busybox-cc8289dc0498d50734770d06601756f7ddc55168.tar.gz |
shell/math: randomconfig fix
Diffstat (limited to 'shell/math.c')
-rw-r--r-- | shell/math.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/math.c b/shell/math.c index 9a46a93..8a44c8e 100644 --- a/shell/math.c +++ b/shell/math.c @@ -414,14 +414,14 @@ arith_apply(operator op, v_n_t *numstack, v_n_t **numstackptr, a_e_h_t *math_hoo rez %= numptr_val; } if (tok_have_assign(op)) { - char buf[sizeof(arith_t_type)*3 + 2]; + char buf[sizeof(arith_t)*3 + 2]; if (numptr_m1->var == NULL) { /* Hmm, 1=2 ? */ goto err; } /* save to shell variable */ - snprintf(buf, sizeof(buf), arith_t_fmt, (arith_t_type) rez); + sprintf(buf, arith_t_fmt, rez); setvar(numptr_m1->var, buf, 0); /* after saving, make previous value for v++ or v-- */ if (op == TOK_POST_INC) @@ -668,7 +668,7 @@ arith(const char *expr, int *perrcode, a_e_h_t *math_hooks) } /* while */ } -/*- +/* * Copyright (c) 1989, 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * |