ivakyb / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

minini getkey doesn't return the key #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The getkey doesn't return the key, it returns the whole line of the key.

Modified: MinIni/minIni.c
===================================================================
--- MinIni/minIni.c 2009-03-03 17:02:59 UTC (rev 22)
+++ MinIni/minIni.c 2009-03-04 20:09:35 UTC (rev 23)
@@ -525,6 +525,13 @@
   } /* if */
   if (!ok)
     *Buffer = '\0';
+  else {
+      char *p = Buffer;
+      while (*p != ' ' && *p != ':' && *p != '=') {
+        ++p;
+      }
+     *p = '\0';
+  }
   return _tcslen(Buffer);
 }

Original issue reported on code.google.com by s.vaning...@gmail.com on 4 Mar 2009 at 8:26

GoogleCodeExporter commented 9 years ago
Bug is confirmed (I have reproduced it). This will be fixed in a next release.

Original comment by thiadmer...@gmail.com on 5 Mar 2009 at 4:35

GoogleCodeExporter commented 9 years ago

Original comment by thiadmer...@gmail.com on 11 Mar 2009 at 12:06

GoogleCodeExporter commented 9 years ago
Fixed in release 0.7.

Original comment by thiadmer...@gmail.com on 6 May 2009 at 8:09