<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 6: bugfix for ini_readInt</title><link>https://sourceforge.net/p/libini/bugs/6/</link><description>Recent changes to 6: bugfix for ini_readInt</description><atom:link href="https://sourceforge.net/p/libini/bugs/6/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 30 Jul 2006 08:19:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libini/bugs/6/feed.rss" rel="self" type="application/rss+xml"/><item><title>bugfix for ini_readInt</title><link>https://sourceforge.net/p/libini/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Patch applies to 1.1.10-2&lt;/p&gt;
&lt;p&gt;This small patch fixes a bug in ini_readInt.&lt;/p&gt;
&lt;p&gt;Assinging the return value of "sscanf" to "res" was&lt;br /&gt;
missing. This caused ini_readInt to return -1 even if&lt;br /&gt;
the int was read ok. The patch fixes this bug.&lt;/p&gt;
&lt;p&gt;Christopher Lang&lt;/p&gt;
&lt;p&gt;--- types.i-original   2006-07-29 19:20:59.000000000 +0200&lt;br /&gt;
+++ libini-1.1.10/src/types.i   2006-07-29&lt;br /&gt;
19:21:24.000000000 +0200&lt;br /&gt;
@@ -215,7 +215,7 @@&lt;br /&gt;
{&lt;br /&gt;
char *data = __ini_readList (ini);&lt;br /&gt;
if (data)&lt;br /&gt;
-            sscanf (data, "%d", value);&lt;br /&gt;
+            ret = sscanf (data, "%d", value);&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
#endif // INI_ADD_LIST_SUPPORT&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher Lang</dc:creator><pubDate>Sun, 30 Jul 2006 08:19:42 -0000</pubDate><guid>https://sourceforge.net5f1243cfe038ef17fbc7c56df66ec7e63c79b1d9</guid></item></channel></rss>