Skip to content
Snippets Groups Projects
Unverified Commit 842881c1 authored by Daniel Kouřil's avatar Daniel Kouřil
Browse files

Fix a getline(3) parameter

parent 28e2d0f4
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,7 @@ main(int argc, char *argv[])
int ret;
size_t len;
char *progname;
size_t size = 0;
char *input = NULL;
if ((progname = strrchr(argv[0], '/')))
......@@ -149,7 +150,7 @@ main(int argc, char *argv[])
exit(1);
}
len = getline(&input, &len, stdin);
len = getline(&input, &size, stdin);
if (len < 0) {
fprintf(stderr, "Failed to read the input credentials\n");
exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment