From 5ad9071ef92abf96cf679a0280761b495d30f6b6 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 16 Sep 2009 14:00:30 +0000 Subject: [PATCH] Fix pointer increment bug git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2061 42af7a65-404d-4744-a932-0658087f49c3 --- lib/lib_strstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib_strstr.c b/lib/lib_strstr.c index 4e2eeb94cb..0dd43ce1b6 100644 --- a/lib/lib_strstr.c +++ b/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) {