Fix a cppcheck warning.

Minor change to 'getline' routine to declare variable 'c' as an
integer, instead of a character. This helps to suppress cppcheck(1)
warning message. Issue reported by David Binderman.