summaryrefslogtreecommitdiff
path: root/trans/firmlink.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-20 21:36:25 +0000
committerRoland McGrath <roland@gnu.org>2002-06-20 21:36:25 +0000
commitd9705c3be8e96e511be63a9ca480ebf0b7d56744 (patch)
treeffaed27034906d2acc16b3d1bf3a6c7f073ce8a6 /trans/firmlink.c
parente43dd5b526a8b135ac488796e44aec700114c471 (diff)
2002-06-20 Roland McGrath <roland@frob.com>
* firmlink.c (trivfs_S_io_read): Fix pointer arithmetic. Reported by Nicola Girardi <nicola@g-n-u.de>.
Diffstat (limited to 'trans/firmlink.c')
-rw-r--r--trans/firmlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/firmlink.c b/trans/firmlink.c
index df8629ae..087e19d0 100644
--- a/trans/firmlink.c
+++ b/trans/firmlink.c
@@ -225,7 +225,7 @@ trivfs_S_io_read (struct trivfs_protid *cred,
err = (*data == MAP_FAILED) ? errno : 0;
if (!err && amount > 0)
{
- memcpy ((char *)(*data + start), target, amount);
+ memcpy (*data, target + start, amount);
if (offs < 0)
cred->po->hook = (void *)(start + amount); /* Update PO offset. */
}