summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
Diffstat (limited to 'env')
-rw-r--r--env/mmc.c2
-rw-r--r--env/nowhere.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/env/mmc.c b/env/mmc.c
index 4e67180b23a..ee376c3e0c3 100644
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -42,7 +42,7 @@ static inline int mmc_offset_try_partition(const char *str, int copy, s64 *val)
if (ret < 0)
return ret;
- if (!strncmp((const char *)info.name, str, sizeof(str)))
+ if (!strncmp((const char *)info.name, str, sizeof(info.name)))
break;
}
diff --git a/env/nowhere.c b/env/nowhere.c
index d33fdf27d0c..d43a2d6b513 100644
--- a/env/nowhere.c
+++ b/env/nowhere.c
@@ -30,7 +30,7 @@ static int env_nowhere_init(void)
static int env_nowhere_load(void)
{
/*
- * for SPL, set env_valid = ENV_INVALID is enougth as env_get_char()
+ * for SPL, set env_valid = ENV_INVALID is enough as env_get_char()
* return the default env if env_get is used
* and SPL don't used env_import to reduce its size
* For U-Boot proper, import the default environment to allow reload.