projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
style fixes
[oweals/busybox.git]
/
shell
/
cmdedit.c
diff --git
a/shell/cmdedit.c
b/shell/cmdedit.c
index bc9cc5ef405a9b38e2c7195f32a2b8d4c5e64c07..7af73ec6e7bec9dfe055f7cee8531cd28dd2ca14 100644
(file)
--- a/
shell/cmdedit.c
+++ b/
shell/cmdedit.c
@@
-1799,7
+1799,7
@@
rewrite_line:
/* After max history, remove the oldest command */
if (i >= MAX_HISTORY) {
free(history[0]);
- for(i = 0; i < MAX_HISTORY-1; i++)
+ for
(i = 0; i < MAX_HISTORY-1; i++)
history[i] = history[i+1];
}
history[i++] = xstrdup(command);