bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hurd/trans/firmlink.c


From: Nicola Girardi
Subject: hurd/trans/firmlink.c
Date: Thu, 20 Jun 2002 23:18:33 +0200

I was just browsing the code and hurd/trans/firmlink.c:228 didn't
look very good to me. Perhaps I'm just mistaken. I can't test this
because I don't have a Hurd box right now, and I'm not going to have
it in few weeks.

If I'm just wrong about this, please tell me why.

(I'm not subscribed.)

Thanks,

Nicola

--- /home/nicola/cvs/hurd/trans/firmlink.c.orig Wed Jun 12 13:57:56 2002
+++ /home/nicola/cvs/hurd/trans/firmlink.c      Wed Jun 12 13:58:43 2002
@@ -226,7 +226,7 @@
       err = (*data == -1) ? errno : 0;
       if (!err && amount > 0)
         {
-          memcpy ((char *)(*data + start), target, amount);
+          memcpy ((char *)(*data), target + start, amount);
           if (offs < 0)
             cred->po->hook = (void *)(start + amount); /* Update PO offset.  */
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]