mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-15 20:39:44 -04:00
[CLEANUP] second fix for the printf format warning
Fix500b8f0349fixed the patch for the 64 bit case but caused the opposite type issue to appear on 32 bit platforms. Cast the difference and be done with it since gcc does not agree on type carrying the difference between two pointers on 32 and 64 bit platforms. (cherry picked from commit3ccf94efd9)
This commit is contained in:
parent
8a4d7dd743
commit
5203a0b055
1 changed files with 1 additions and 1 deletions
|
|
@ -3732,7 +3732,7 @@ int readcfgfile(const char *file)
|
|||
*line = '\0';
|
||||
|
||||
Alert("parsing [%s:%d]: line too long, truncating at word %d, position %ld: <%s>.\n",
|
||||
file, linenum, arg + 1, args[arg] - thisline + 1, args[arg]);
|
||||
file, linenum, arg + 1, (long)(args[arg] - thisline + 1), args[arg]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
args[arg] = line;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue