Stephen Warren acbfad4efb Fix type of variable used to store fgetc() result
fgetc() returns an int. Fix process_config_file() to store the result in
an int, so that comparisons against EOF succeed.

Previously, If "char" defaulted to unsigned (which may be true for armhf),
then when fgetc() returned -1, it would be truncated to 255 when stored
in the char, and then zero-filled rather than sign-extended when comparing
against EOF, which would then fail.

See http://code.google.com/p/chromium-os/issues/detail?id=25632.

Reported-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Change-Id: I018e32df9a87b7c6f9fe24d108e091a7b31a50c8
Reviewed-on: http://git-master/r/192151
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
2013-01-17 14:07:42 -08:00
2012-05-23 07:56:07 -07:00
2012-11-30 13:05:29 -08:00
2012-11-30 13:05:29 -08:00
2012-11-30 13:05:29 -08:00
2012-11-30 13:05:29 -08:00
2012-11-29 17:30:40 -08:00
2012-11-30 13:05:29 -08:00
2012-11-30 13:05:29 -08:00
2012-11-30 13:05:29 -08:00
2012-11-30 13:05:29 -08:00
Description
No description provided
1.4 GiB
Languages
C 64.7%
Lasso 20.7%
ASL 3.6%
JavaScript 3.2%
C# 2.9%
Other 4.6%