Fixes to strchr, mkfats, and NxWidgets from Petteri Aimonen

This commit is contained in:
Gregory Nutt
2013-04-22 08:01:43 -06:00
parent a2d6279cee
commit c23ad7963f
3 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -64,12 +64,17 @@ FAR char *strchr(FAR const char *s, int c)
{
if (s)
{
for (; *s; s++)
for (; ; s++)
{
if (*s == c)
{
return (FAR char *)s;
}
if (!*s)
{
break;
}
}
}