2016-04-20 17:31 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/hbstrfmt.c
    * add to output trailing % in format pattern just like other % characters
      which are not part of valid format string, i.e. in this code:
         ? hb_StrFormat( "%-% %1%q%*%" )
      only the last % was silently eaten from output
This commit is contained in:
Przemysław Czerpak
2016-04-20 17:31:18 +02:00
parent f03c7b9e69
commit c0b5c749e0
2 changed files with 7 additions and 3 deletions

View File

@@ -10,6 +10,13 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2016-04-20 17:31 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbstrfmt.c
* add to output trailing % in format pattern just like other % characters
which are not part of valid format string, i.e. in this code:
? hb_StrFormat( "%-% %1%q%*%" )
only the last % was silently eaten from output
2016-04-20 17:19 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbstrfmt.c
! fixed wrongly added to output character after unclosed format strings,

View File

@@ -122,9 +122,6 @@ PHB_ITEM hb_strFormat( PHB_ITEM pItemReturn, PHB_ITEM pItemFormat, int iCount, P
pFmtSave = pFmt;
if( ++pFmt >= pFmtEnd )
continue;
if( *pFmt == '%' )
{
bufadd( &buffer, pFmt++, 1 );