Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
3aebf265
Commit
3aebf265
authored
Jan 08, 2015
by
Grzegorz Daniluk
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdb-lib: fixing c&p bug, in sdbfs_fwrite() memcpy should copy data from buf to file
parent
a0f9eb9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
access.c
sdb-lib/access.c
+1
-1
No files found.
sdb-lib/access.c
View file @
3aebf265
...
...
@@ -51,7 +51,7 @@ int sdbfs_fwrite(struct sdbfs *fs, int offset, void *buf, int count)
count
=
fs
->
f_len
-
offset
;
ret
=
count
;
if
(
fs
->
data
)
memcpy
(
buf
,
fs
->
data
+
fs
->
f_offset
+
offset
,
count
);
memcpy
(
fs
->
data
+
fs
->
f_offset
+
offset
,
buf
,
count
);
else
ret
=
fs
->
write
(
fs
,
fs
->
f_offset
+
offset
,
buf
,
count
);
if
(
ret
>
0
)
...
...
Grzegorz Daniluk
@greg.d
mentioned in commit
fpga-config-space@3d3fd837
·
Apr 11, 2022
mentioned in commit
fpga-config-space@3d3fd837
mentioned in commit fpga-config-space@3d3fd837b15a979d9df84b97097a67a5f1229847
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment