Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
c23ad796
Commit
c23ad796
authored
12 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to strchr, mkfats, and NxWidgets from Petteri Aimonen
parent
a2d6279c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
fs/fat/fs_writefat.c
+1
-1
1 addition, 1 deletion
fs/fat/fs_writefat.c
libc/string/lib_strchr.c
+6
-1
6 additions, 1 deletion
libc/string/lib_strchr.c
with
12 additions
and
2 deletions
ChangeLog
+
5
−
0
View file @
c23ad796
...
...
@@ -4581,3 +4581,8 @@
variables with auto-generated documentation. The initial checkin
is an incomplete, poorly structured prototype that I hope to
evolve into a useful tool (2014-4-20).
* libc/string/lib_strchr.c: strchr(str, '\0') should return a
pointer to the end of the string, not NULL. From Petteri
Aimonen (2014-4-22).
* fs/fat/fs_writefat.c: mkfatfs was writing the boot code to the
wrong location. From Petteri Aimonen (2014-4-22).
This diff is collapsed.
Click to expand it.
fs/fat/fs_writefat.c
+
1
−
1
View file @
c23ad796
...
...
@@ -212,7 +212,7 @@ static inline void mkfatfs_initmbr(FAR struct fat_format_s *fmt,
/* Boot code may be placed in the remainder of the sector */
memcpy
(
&
var
->
fv_sect
[
BS
16
_BOOTCODE
],
var
->
fv_bootcode
,
var
->
fv_bootcodesize
);
memcpy
(
&
var
->
fv_sect
[
BS
32
_BOOTCODE
],
var
->
fv_bootcode
,
var
->
fv_bootcodesize
);
}
/* The magic bytes at the end of the MBR are common to FAT12/16/32 */
...
...
This diff is collapsed.
Click to expand it.
libc/string/lib_strchr.c
+
6
−
1
View file @
c23ad796
...
...
@@ -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
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment