<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/gnuwin32/patches/" rel="alternate"/><link href="https://sourceforge.net/p/gnuwin32/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuwin32/patches/</id><updated>2015-05-20T12:42:39.157000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>hex2bin fix</title><link href="https://sourceforge.net/p/gnuwin32/patches/2/" rel="alternate"/><published>2015-05-20T12:42:39.157000Z</published><updated>2015-05-20T12:42:39.157000Z</updated><author><name>Anton Modaresi</name><uri>https://sourceforge.net/u/starsinthesky/</uri></author><id>https://sourceforge.netd591fbb2541f8365ada5cb34807a6a1be6268269</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Currently hex2bin is defunct. whenever a 0A is in the hexdump, it adds an extra 0D corrupting the executable. &lt;/p&gt;
&lt;p&gt;in hex2bin.c where it says:&lt;br /&gt;
.....&lt;br /&gt;
   if (outfname &amp;amp;&amp;amp; !freopen(outfname,"wb",stdout)) {&lt;br /&gt;
      fprintf(stderr,E_OpenWrite,argv&lt;span&gt;[0]&lt;/span&gt;,outfname);&lt;br /&gt;
      exit(1);&lt;br /&gt;
   }&lt;/p&gt;
&lt;p&gt;total=mainloop();&lt;br /&gt;
.....&lt;/p&gt;
&lt;p&gt;change to:&lt;/p&gt;
&lt;p&gt;if (outfname &amp;amp;&amp;amp; !freopen(outfname,"wb",stdout)) {&lt;br /&gt;
      fprintf(stderr,E_OpenWrite,argv&lt;span&gt;[0]&lt;/span&gt;,outfname);&lt;br /&gt;
      exit(1);&lt;br /&gt;
   }&lt;/p&gt;
&lt;p&gt;if (_setmode(fileno(stdout), O_BINARY) == -1) {&lt;br /&gt;
      fprintf(stderr,E_SetMode,argv&lt;span&gt;[0]&lt;/span&gt;);&lt;br /&gt;
      exit(1);&lt;br /&gt;
   }&lt;/p&gt;
&lt;p&gt;total=mainloop();&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title/><link href="https://sourceforge.net/p/gnuwin32/patches/1/" rel="alternate"/><published>2012-07-26T18:57:58.292000Z</published><updated>2012-07-26T18:57:58.292000Z</updated><author><name>GnuWin32</name><uri>https://sourceforge.net/u/gnuwin32/</uri></author><id>https://sourceforge.net3658fc45aae2edcd206cf0da1e1dcde4e61715a6</id><summary type="html"/></entry></feed>