summaryrefslogtreecommitdiff
path: root/src/mate-calc-cmd.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-10-25 14:54:31 +0100
committerRobert Antoni Buj Gelonch <[email protected]>2020-11-09 21:49:49 +0100
commit869de6d8e3833932ee8b0e8e70c13a2e5d4ceb82 (patch)
treeb6f47012ec040a66c907987db21af42cd0fb39a9 /src/mate-calc-cmd.c
parent3ff75b9a3e85a4d7723b0de1f69345f3943070dd (diff)
downloadmate-calc-869de6d8e3833932ee8b0e8e70c13a2e5d4ceb82.tar.bz2
mate-calc-869de6d8e3833932ee8b0e8e70c13a2e5d4ceb82.tar.xz
Fix most conversion warnings.
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);