mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
318aaffea1
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. |
||
---|---|---|
.. | ||
android | ||
cocoa | ||
fallback | ||
gonk | ||
linux | ||
sandbox | ||
windows | ||
Hal.cpp | ||
Hal.h | ||
HalImpl.h | ||
HalInternal.h | ||
HalSandbox.h | ||
HalSensor.h | ||
HalTypes.h | ||
HalWakeLock.cpp | ||
HalWakeLock.h | ||
Makefile.in | ||
WindowIdentifier.cpp | ||
WindowIdentifier.h |