diff options
-rw-r--r-- | nuttx/lib/lib_strstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/lib_strstr.c b/nuttx/lib/lib_strstr.c index 4e2eeb94c..0dd43ce1b 100644 --- a/nuttx/lib/lib_strstr.c +++ b/nuttx/lib/lib_strstr.c @@ -54,7 +54,7 @@ char *strstr(const char *str, const char *substr) /* Special case the empty substring */ len = strlen(substr); - ch = *substr++; + ch = *substr; if (!ch) { |