Update g_inputstream.cpp