mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-04 16:10:10 +00:00
* add more hacks to compile * binaries tested on Zaurus poodle/corgi (with patched kernel) * bump PR * NOTES * strange behavior wrt getopt for at least ubiformat: * you should pass the options first, i.e. * ubiformat -O 512 /dev/mtd3 *works* * ubiformat /dev/mtd3 -O 512 *fails* Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
14 lines
438 B
Diff
14 lines
438 B
Diff
--- a/ubi-utils/libiniparser.c 2012-04-30 23:59:40.000000000 +0200
|
|
+++ b/ubi-utils/libiniparser.c 2012-04-30 23:55:15.000000000 +0200
|
|
@@ -333,7 +333,9 @@
|
|
|
|
str = iniparser_getstring(d, key, INI_INVALID_KEY);
|
|
if (str==INI_INVALID_KEY) return notfound ;
|
|
- return atof(str);
|
|
+ double value;
|
|
+ sscanf(str,"%lf",&value);
|
|
+ return value;
|
|
}
|
|
|
|
/*-------------------------------------------------------------------------*/
|