aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-03-21 05:01:11 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-03-21 05:01:11 +0000
commit41d245f9e30f5ffe9ca7492f853f75db259b01fc (patch)
treecc8a9048d1102ad0e8a7bcddc3aa2675d587a992 /lcd4linux.c
parent3fe74144bf1b5b43256dcc33640bb2293d86202d (diff)
downloadlcd4linux-41d245f9e30f5ffe9ca7492f853f75db259b01fc.tar.gz
plugin_file patch from Mark Richards
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@782 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index 33a41e7..eee332b 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -82,7 +82,7 @@ static void interactive_mode(void)
RESULT result = { 0, 0, 0, NULL };
printf("\neval> ");
- for (fgets(line, 1024, stdin); !feof(stdin); fgets(line, 1024, stdin)) {
+ for (fgets(line, sizeof(line), stdin); !feof(stdin); fgets(line, sizeof(line), stdin)) {
if (line[strlen(line) - 1] == '\n')
line[strlen(line) - 1] = '\0';
if (strlen(line) > 0) {