diff mbox

[U-Boot] common: cli_hush: Fix up simple typo

Message ID 1449255731-24647-1-git-send-email-nm@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Nishanth Menon Dec. 4, 2015, 7:02 p.m. UTC
Correct the spelling for character..

Signed-off-by: Nishanth Menon <nm@ti.com>
---

 common/cli_hush.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Glass Dec. 6, 2015, 4:44 p.m. UTC | #1
On 4 December 2015 at 12:02, Nishanth Menon <nm@ti.com> wrote:
> Correct the spelling for character..
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>
>  common/cli_hush.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Dec. 15, 2015, 11:28 p.m. UTC | #2
On Fri, Dec 04, 2015 at 01:02:11PM -0600, Nishanth Menon wrote:

> Correct the spelling for character..
> 
> Signed-off-by: Nishanth Menon <nm@ti.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/cli_hush.c b/common/cli_hush.c
index a7cac4fcb9df..5a26af80c758 100644
--- a/common/cli_hush.c
+++ b/common/cli_hush.c
@@ -3503,9 +3503,9 @@  static char *insert_var_value_sub(char *inp, int tag_subst)
 	char *p, *p1, *res_str = NULL;
 
 	while ((p = strchr(inp, SPECIAL_VAR_SYMBOL))) {
-		/* check the beginning of the string for normal charachters */
+		/* check the beginning of the string for normal characters */
 		if (p != inp) {
-			/* copy any charachters to the result string */
+			/* copy any characters to the result string */
 			len = p - inp;
 			res_str = xrealloc(res_str, (res_str_len + len));
 			strncpy((res_str + res_str_len), inp, len);