aboutsummaryrefslogtreecommitdiff
path: root/shell/cmdedit.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 10:42:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 10:42:51 +0000
commitbf0a201008671f81c107de72c026b1b84967561d (patch)
treeaf74820b70fa27929fe218c95822c20651b60637 /shell/cmdedit.c
parent5dd7ef0f37373e397a7160cb431a32ae57f9f7d9 (diff)
downloadbusybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.gz
busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.bz2
busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.zip
style fixes
last xcalloc replaced by xzalloc
Diffstat (limited to 'shell/cmdedit.c')
-rw-r--r--shell/cmdedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index bc9cc5ef4..7af73ec6e 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -1799,7 +1799,7 @@ rewrite_line:
1799 /* After max history, remove the oldest command */ 1799 /* After max history, remove the oldest command */
1800 if (i >= MAX_HISTORY) { 1800 if (i >= MAX_HISTORY) {
1801 free(history[0]); 1801 free(history[0]);
1802 for(i = 0; i < MAX_HISTORY-1; i++) 1802 for (i = 0; i < MAX_HISTORY-1; i++)
1803 history[i] = history[i+1]; 1803 history[i] = history[i+1];
1804 } 1804 }
1805 history[i++] = xstrdup(command); 1805 history[i++] = xstrdup(command);