From 72d3e97284427ccdc81dcc3b3a66094d2e665062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Tue, 28 Jul 2015 01:39:58 +0200 Subject: [PATCH] 2015-07-28 01:39 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/padx.c ! fixed typo in hb_UPad[LRC]() functions - thanks to Grigory Filatov --- ChangeLog.txt | 4 ++++ src/rtl/padx.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 98f47bacc5..be7b6ec68a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2015-07-28 01:39 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rtl/padx.c + ! fixed typo in hb_UPad[LRC]() functions - thanks to Grigory Filatov + 2015-07-27 18:41 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/teditor.prg ! fixed hb_ULen() wrongly used instead of Len() for arrays diff --git a/src/rtl/padx.c b/src/rtl/padx.c index c90c0371dc..6155e44902 100644 --- a/src/rtl/padx.c +++ b/src/rtl/padx.c @@ -228,7 +228,7 @@ HB_FUNC( HB_UPADL ) if( ! HB_CDP_ISCUSTOM( cdp ) ) cdp = NULL; - s_hb_strPad( HB_PAD_L, NULL ); + s_hb_strPad( HB_PAD_L, cdp ); } /* right-pads a date, number, or string with spaces or supplied character */ @@ -254,7 +254,7 @@ HB_FUNC( HB_UPADR ) if( ! HB_CDP_ISCUSTOM( cdp ) ) cdp = NULL; - s_hb_strPad( HB_PAD_R, NULL ); + s_hb_strPad( HB_PAD_R, cdp ); } /* centre-pads a date, number, or string with spaces or supplied character */ @@ -280,5 +280,5 @@ HB_FUNC( HB_UPADC ) if( ! HB_CDP_ISCUSTOM( cdp ) ) cdp = NULL; - s_hb_strPad( HB_PAD_C, NULL ); + s_hb_strPad( HB_PAD_C, cdp ); }