mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-22 03:40:11 +00:00
* fixes have been committed in klibc for stdio and the additional * fflush is not necessary anymore (runtime tested pressing CTRL+D) * bump PR Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
21 lines
566 B
Diff
21 lines
566 B
Diff
--- a/ubi-utils/ubiformat.c 2012-05-03 01:14:39.000000000 +0200
|
|
+++ b/ubi-utils/ubiformat.c 2012-05-20 23:11:57.000000000 +0200
|
|
@@ -246,7 +246,7 @@
|
|
|
|
while (1) {
|
|
normsg_cont("continue? (yes/no) ");
|
|
- if (scanf("%3s", buf) == EOF) {
|
|
+ if (fgets(buf,4,stdin) == NULL) {
|
|
sys_errmsg("scanf returned unexpected EOF, assume \"yes\"");
|
|
return 1;
|
|
}
|
|
@@ -262,7 +262,7 @@
|
|
char buf[4];
|
|
|
|
while (1) {
|
|
- if (scanf("%3s", buf) == EOF) {
|
|
+ if (fgets(buf,4,stdin) == NULL) {
|
|
sys_errmsg("scanf returned unexpected EOF, assume \"no\"");
|
|
return 0;
|
|
}
|