Skip to content

Commit

Permalink
voutf: fix bad arethmetic when outputting warnings to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Oct 30, 2018
1 parent e97679a commit d530e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tool_msgs.c
Expand Up @@ -67,7 +67,7 @@ static void voutf(struct GlobalConfig *config,
(void)fwrite(ptr, cut + 1, 1, config->errors);
fputs("\n", config->errors);
ptr += cut + 1; /* skip the space too */
len -= cut;
len -= cut + 1;
}
else {
fputs(ptr, config->errors);
Expand Down

0 comments on commit d530e92

Please sign in to comment.