summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2005-12-22 00:24:19 +0000
committerJohn Millaway <john43@users.sourceforge.net>2005-12-22 00:24:19 +0000
commitdc83e39a08d677865d9b89a54632a7a7b02204a3 (patch)
treee0d3e35d27e1317844f468211b906c6387799a82 /main.c
parent291bffe0fec71704364ccb24506531c1dfec5566 (diff)
Improvement request 1069716 log vs. log10
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f5f1812..c8ea638 100644
--- a/main.c
+++ b/main.c
@@ -436,7 +436,7 @@ void check_options ()
for (i = 1; i <= lastsc; i++) {
char *str, *fmt = "#define %s %d\n";
- str = (char*)flex_alloc(strlen(fmt) + strlen(scname[i]) + (int)(1 + log(i)/log(10)) + 2);
+ str = (char*)flex_alloc(strlen(fmt) + strlen(scname[i]) + (int)(1 + log10(i)) + 2);
sprintf(str, fmt, scname[i], i - 1);
buf_strappend(&tmpbuf, str);
free(str);