mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
8070156e24
The call to fscanf for reading the battery status used an incorrect pointer in its arguments. The code only worked because the first byte of a character array is the first element within the array. To fix this problem, fscanf has been replaced by fgets, which is less error prone and checks the length of the supplied array. Additionaly, we don't want to operate on an undefined result if fgets fails. In this case we assume that the battery is not being charged. |
||
---|---|---|
.. | ||
GonkFMRadio.cpp | ||
GonkHal.cpp | ||
GonkSensor.cpp | ||
GonkSwitch.cpp | ||
tavarua.h | ||
UeventPoller.cpp | ||
UeventPoller.h |