Comment 7 for bug 1647467

Revision history for this message
Julian Andres Klode (juliank) wrote :

Updated patch attached. This one works differently by putting getline into its own helper function that reports the error, and then aborting after the loop if an error occured inside of it.

This makes it a bit safer.