From: Christian Heller Date: Mon, 31 Mar 2014 02:24:43 +0000 (+0200) Subject: Fix textfile_width() line length check position. X-Git-Tag: tce~787 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/static/day?a=commitdiff_plain;h=ef60270da2acf29953b411632e26503d7787d9d8;p=plomrogue Fix textfile_width() line length check position. --- diff --git a/src/common/readwrite.c b/src/common/readwrite.c index 3dcd2a2..c2c970d 100644 --- a/src/common/readwrite.c +++ b/src/common/readwrite.c @@ -108,8 +108,8 @@ extern uint32_t textfile_width(FILE * file) { break; } - exit_trouble(UINT32_MAX == c_count, f_name, "too large text file line"); c_count++; + exit_trouble(UINT32_MAX == c_count, f_name, "too large text file line"); if ('\n' == c) { if (c_count > linemax)