Small ps2link fix

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
ffgriever
Posts: 11
Joined: Sat Oct 27, 2007 7:06 am

Small ps2link fix

Post by ffgriever »

ps2link/ee/cmdHandler.c

function pkoDumpMem

You forgot to increase pointer, so it writes the same 16kB over and over (if user specified to get more than 16kB that means).

IMO, just change:

memcpy(dataBuffer, (void *)offset, len);

to:

memcpy(dataBuffer, (void *)(offset+total), len);

Or increase the offset just as you do in pkoWriteMem.
User avatar
Lukasz
Posts: 248
Joined: Mon Jan 19, 2004 8:37 pm
Location: Denmark
Contact:

Post by Lukasz »

I've commited the patch to svn, good job finding the bug ;-)
Post Reply