diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 22:47:04 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 22:47:04 +0000 |
commit | ae88b2079b49f803947d60fb094f60d2a7522a25 (patch) | |
tree | d55d3b728a90881570ec67cf2a26ad0138bcb1bc /nuttx/lib | |
parent | 7cbeae30b426e0912d1814c76e6223fb0842a9fc (diff) | |
download | px4-nuttx-ae88b2079b49f803947d60fb094f60d2a7522a25.tar.gz px4-nuttx-ae88b2079b49f803947d60fb094f60d2a7522a25.tar.bz2 px4-nuttx-ae88b2079b49f803947d60fb094f60d2a7522a25.zip |
Fix error in strrch()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3501 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/string/lib_strrchr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/string/lib_strrchr.c b/nuttx/lib/string/lib_strrchr.c index c80542341..e89b26d52 100644 --- a/nuttx/lib/string/lib_strrchr.c +++ b/nuttx/lib/string/lib_strrchr.c @@ -54,7 +54,7 @@ char *strrchr(const char *s, int c) if (s) { const char *p = &s[strlen(s) - 1]; - for (; p > s; p--) + for (; p >= s; p--) { if (*p == c) { |