<html>
<body>
  <div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/src</tt></b></td></tr>
<tr><td><tt><a href="#file1">loader.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+1</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-1</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">09a69dfc7931 -> 0b14a8ec373b</td></tr>
</table>
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Fix wrapped cdrom ELF images (writing to wild memory, natch)
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>loader.c</b></big> <small id="info" style="color: #888888;" >09a69dfc7931 -> 0b14a8ec373b</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/loader.c
+++ lxdream/src/loader.c
@@ -442,7 +442,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         if( phdr[i].p_type == PT_LOAD ) {
             lseek( fd, phdr[i].p_offset, SEEK_SET );
             uint32_t size = MIN( phdr[i].p_filesz, phdr[i].p_memsz);
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-            int status = read( fd, program + phdr[i].p_vaddr, size );
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+            int status = read( fd, program + phdr[i].p_vaddr<span id="addedchars" style="background-color:#99ff99;font-weight:bolder;" > - start</span>, size );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >             if( status == -1 ) {
                 SET_ERROR( err, LX_ERR_FILE_IOERROR, "I/O error reading SH4 binary %s (%s)", filename, strerror(errno) );
             } else if( status != size ) {
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>