From f8ed18becbc7fcdf3603c4998c1bd331a2ecc713 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Wed, 12 Dec 2018 00:22:59 +1100 Subject: [PATCH] Rename 'pad_char' argument to padc This avoids a clash with pad_char defined in . --- source/ircaux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/ircaux.c b/source/ircaux.c index b99c552..0ca4e94 100644 --- a/source/ircaux.c +++ b/source/ircaux.c @@ -1831,16 +1831,15 @@ char *BX_my_ltoa (long foo) * zero, nothing happens. Sure, i cheat, but its cheaper then doing * two sprintf's. */ -char *BX_strformat (char *dest, const char *src, int length, char pad_char) +char *BX_strformat (char *dest, const char *src, int length, char padc) { char *ptr1 = dest, *ptr2 = (char *)src; int tmplen = length; int abslen; - char padc; abslen = (length >= 0 ? length : -length); - if (!(padc = pad_char)) + if (!padc) padc = ' '; /* Cheat by spacing out 'dest' */