openframeworks/openFrameworks — pull request #3429 by chphmh (2014-11-20 14:23:54+00:00)
Title: Update ofUtils.cpp

Changed `char c;` to `int c;` in ofSystem() because fgetc() returns int and EOF is also declared as int. Otherwise the comparison `c != EOF` fails in my tests on Raspberry Pi (Raspbian Wheezy) and ofSystem() gets stuck in the do-while-loop. (That's probably because EOF is defined as -1 and when fgetc returns this to a char variable, it is interpreted as 255 and a comparison with EOF fails.)