Simple config file class with added support for floats

Fork of ConfigFile by peter brier

Files at this revision

API Documentation at this revision

Comitter:
jaerts
Date:
Sat Jan 10 14:04:59 2015 +0000
Parent:
6:78404e968c3e
Commit message:
Fix bug that prevents reading values with length=1

Changed in this revision

ConfigFile.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 78404e968c3e -r 0a8c1d05611b ConfigFile.cpp
--- a/ConfigFile.cpp	Mon Dec 29 10:01:31 2014 +0000
+++ b/ConfigFile.cpp	Sat Jan 10 14:04:59 2015 +0000
@@ -103,7 +103,7 @@
         break;
      }
   }
-  if ( s == 99 && m > 1) // key found, and value assigned
+  if ( s == 99 && m >= 1) // key found, and value assigned
   {
      *value = 0; // terminate string
     return true;