Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wrpc-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
wr-cores
wrpc-sw
Commits
3aebf265
Commit
3aebf265
authored
Jan 08, 2015
by
Grzegorz Daniluk
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
Hide 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
)
...
...
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