<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/wendzelnntpd/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/wendzelnntpd/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/wendzelnntpd/bugs/</id><updated>2007-12-05T00:28:25Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>BIG problem in windows version in function: get_uniqnum</title><link href="https://sourceforge.net/p/wendzelnntpd/bugs/1/" rel="alternate"/><published>2007-12-05T00:28:25Z</published><updated>2007-12-05T00:28:25Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netc3fe5cb1b973928b2a6612898017ea107290d183</id><summary type="html">&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;</summary></entry></feed>