summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index aff9c6e..c8ac1a8 100644
--- a/math.c
+++ b/math.c
@@ -186,7 +186,7 @@ static void
DrawDisplay(void)
{
if (strlen(dispstr) > 12) { /* strip out some decimal digits */
- char *estr = index(dispstr,'e'); /* search for exponent part */
+ char *estr = strchr(dispstr,'e'); /* search for exponent part */
if (!estr) dispstr[12]='\0'; /* no exp, just trunc. */
else {
char tmp[32];