home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1008f26
)
Fix textfile_width() line length check position.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 31 Mar 2014 02:24:43 +0000
(
04:24
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 31 Mar 2014 02:24:43 +0000
(
04:24
+0200)
src/common/readwrite.c
patch
|
blob
|
history
diff --git
a/src/common/readwrite.c
b/src/common/readwrite.c
index 3dcd2a2d90ec307d86a6c23fe99a36048725e143..c2c970d292cb9579d5e6fddc64eb733ac3524246 100644
(file)
--- 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)