diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-16 14:00:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-09-16 14:00:30 +0000 |
commit | 190fb53270c8c9451f3f68acbbb6b99bd114702c (patch) | |
tree | 0e4884508a4b18db10b1ab47b36cdce8832775fd /nuttx/lib | |
parent | 61dc7dc2a3f9fd8233020c65bde6460f458d93d9 (diff) | |
download | px4-nuttx-190fb53270c8c9451f3f68acbbb6b99bd114702c.tar.gz px4-nuttx-190fb53270c8c9451f3f68acbbb6b99bd114702c.tar.bz2 px4-nuttx-190fb53270c8c9451f3f68acbbb6b99bd114702c.zip |
Fix pointer increment bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2061 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-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) { |