diff options
| author | Andrea Adami <andrea.adami@gmail.com> | 2012-05-02 23:53:00 +0000 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-10 16:38:14 +0200 |
| commit | 3ba480f4b53d564be73f770db05d449da065efc6 (patch) | |
| tree | 23aca2c1a8cf817774008f0804004d912d8710e8 /meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch | |
| parent | 32d316edae416b88159472a3b4f904a830090000 (diff) | |
| download | meta-openembedded-3ba480f4b53d564be73f770db05d449da065efc6.tar.gz | |
ubi-utils-klibc: add the remaining ubicrc32, ubinize, ubiformat
* 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>
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch')
| -rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch new file mode 100644 index 0000000000..8be8ac32aa --- /dev/null +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | --- a/ubi-utils/libiniparser.c 2012-04-30 23:59:40.000000000 +0200 | ||
| 2 | +++ b/ubi-utils/libiniparser.c 2012-04-30 23:55:15.000000000 +0200 | ||
| 3 | @@ -333,7 +333,9 @@ | ||
| 4 | |||
| 5 | str = iniparser_getstring(d, key, INI_INVALID_KEY); | ||
| 6 | if (str==INI_INVALID_KEY) return notfound ; | ||
| 7 | - return atof(str); | ||
| 8 | + double value; | ||
| 9 | + sscanf(str,"%lf",&value); | ||
| 10 | + return value; | ||
| 11 | } | ||
| 12 | |||
| 13 | /*-------------------------------------------------------------------------*/ | ||
