From 7f0ad21d1552479dfdf6b6dddae9bb3c513f04b1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 3 Feb 2012 16:04:13 -0600 Subject: PR 2001/shell - medit command argument parsing correction "medit" overran the argument list, choking on the NULL pointer following the last argument. Note that "medit" still only does byte-sized accesses, which limits its usefulness on most systems. Author: Werner Almesberger Signed-off-by: Sebastien Bourdeauducq --- cpukit/libmisc/shell/main_medit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/libmisc/shell/main_medit.c b/cpukit/libmisc/shell/main_medit.c index 7905fbe689..aed3153a80 100644 --- a/cpukit/libmisc/shell/main_medit.c +++ b/cpukit/libmisc/shell/main_medit.c @@ -55,7 +55,7 @@ int rtems_shell_main_medit( * Now edit the memory */ n = 0; - for (i=2 ; i<=argc ; i++) { + for (i=2 ; i