summaryrefslogtreecommitdiff
path: root/src/mate-calc-cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mate-calc-cmd.c')
-rw-r--r--src/mate-calc-cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mate-calc-cmd.c b/src/mate-calc-cmd.c
index cf8db3d..d8e86ec 100644
--- a/src/mate-calc-cmd.c
+++ b/src/mate-calc-cmd.c
@@ -70,7 +70,6 @@ int
main(int argc, char **argv)
{
char *equation, *line;
- size_t nbytes = MAXLINE;
/* Seed random number generator. */
srand48((long) time((time_t *) 0));
@@ -82,7 +81,7 @@ main(int argc, char **argv)
equation = (char *) malloc(MAXLINE * sizeof(char));
while (1) {
printf("> ");
- line = fgets(equation, nbytes, stdin);
+ line = fgets(equation, MAXLINE, stdin);
if (line != NULL)
str_adjust(equation);