<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/wendzelnntpd/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/wendzelnntpd/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 05 Dec 2007 00:28:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wendzelnntpd/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>BIG problem in windows version in function: get_uniqnum</title><link>https://sourceforge.net/p/wendzelnntpd/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Server can store only 27 messages (or 28) and after that can't. Problem is in file: database.c in function get_uniqnum. Function can't read from file after id 28.&lt;/p&gt;
&lt;p&gt;Wrong is this:&lt;br /&gt;
if (!(fp=fopen(MSGID_FILE, "r+"))) {&lt;br /&gt;
id = 0;&lt;br /&gt;
fp = fopen(MSGID_FILE, "w+");&lt;/p&gt;
&lt;p&gt;You must change this in:&lt;br /&gt;
if (!(fp=fopen(MSGID_FILE, "rb+"))) {&lt;br /&gt;
id = 0;&lt;br /&gt;
fp = fopen(MSGID_FILE, "wb+");&lt;/p&gt;
&lt;p&gt;On windows that is not same!&lt;/p&gt;
&lt;p&gt;I am make test code (in attachment). Please try that on windows, with rb+, wb+ and without "rb+, wb+. Execute program 28 times, and you will see that on windows you must change r+ w+ to rb+ and wb+. &lt;/p&gt;
&lt;p&gt;Can you fix this BUG and make new version 1.0.5 ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 05 Dec 2007 00:28:25 -0000</pubDate><guid>https://sourceforge.netc3fe5cb1b973928b2a6612898017ea107290d183</guid></item></channel></rss>