Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333628
b: refs/heads/master
c: b9d29ab
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Poirier authored and Michal Marek committed Sep 27, 2012
1 parent b4cd01d commit 235191c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d52a4a79188e5567b6c55f67e20a4f1043d10d3
refs/heads/master: b9d29abd98a2bbeb3a6c49c1607348c92bc80105
8 changes: 3 additions & 5 deletions trunk/scripts/kconfig/lxdialog/textbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,8 @@ static char *get_line(void)
end_reached = 0;
while (*page != '\n') {
if (*page == '\0') {
if (!end_reached) {
end_reached = 1;
break;
}
end_reached = 1;
break;
} else if (i < MAX_LEN)
line[i++] = *(page++);
else {
Expand All @@ -373,7 +371,7 @@ static char *get_line(void)
if (i <= MAX_LEN)
line[i] = '\0';
if (!end_reached)
page++; /* move pass '\n' */
page++; /* move past '\n' */

return line;
}
Expand Down

0 comments on commit 235191c

Please sign in to comment.