diff options
author | Ron Yorston <rmy@pobox.com> | 2012-10-10 12:56:24 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-10-10 12:56:24 +0100 |
commit | 981a6fcd1323a77d5829c7d574bb40fd1b96dc4d (patch) | |
tree | a1e3aadf4de65d7a525c7dd6172546ff577777d5 /libbb/lineedit.c | |
parent | 19436cc0ee509a5e356c04f0026919abd417bec4 (diff) | |
parent | eab343e7e1e5331df833aa69f14584e4a6c738f1 (diff) | |
download | busybox-w32-981a6fcd1323a77d5829c7d574bb40fd1b96dc4d.tar.gz busybox-w32-981a6fcd1323a77d5829c7d574bb40fd1b96dc4d.tar.bz2 busybox-w32-981a6fcd1323a77d5829c7d574bb40fd1b96dc4d.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 65dffe56d..8a276d941 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -2754,7 +2754,8 @@ int FAST_FUNC read_line_input(const char* prompt, char* command, int maxsize) | |||
2754 | { | 2754 | { |
2755 | fputs(prompt, stdout); | 2755 | fputs(prompt, stdout); |
2756 | fflush_all(); | 2756 | fflush_all(); |
2757 | fgets(command, maxsize, stdin); | 2757 | if (!fgets(command, maxsize, stdin)) |
2758 | return -1; | ||
2758 | return strlen(command); | 2759 | return strlen(command); |
2759 | } | 2760 | } |
2760 | 2761 | ||