df: fix multiple bugs
authorAlan Cox <alan@linux.intel.com>
Sat, 16 May 2015 15:44:26 +0000 (16:44 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 16 May 2015 15:44:26 +0000 (16:44 +0100)
commit5c468432f64d4b4dc81690c63d7030e2a1eb9363
tree03c2c36a1684f8f2c3e91b9e0b4f39e638ab673b
parentf70462b6a21c34790d4c874dcc61356c2b87b4f5
df: fix multiple bugs

- sizeof(number) is not number but 1 or 2
- check strtok return rather than trying to play with NULL

Not clear with is the root cause of the trs80 df crash but at least it works
now
Applications/util/df.c