mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Fix pointer increment bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2061 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ char *strstr(const char *str, const char *substr)
|
|||||||
/* Special case the empty substring */
|
/* Special case the empty substring */
|
||||||
|
|
||||||
len = strlen(substr);
|
len = strlen(substr);
|
||||||
ch = *substr++;
|
ch = *substr;
|
||||||
|
|
||||||
if (!ch)
|
if (!ch)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user