From 9b8db0c3dedab0cbf4c50483fe7e37a58d4281f5 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 26 May 2008 10:24:44 +0000 Subject: [PATCH] 2008-05-26 12:23 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * contrib/hbclipsm/gauge.c ! Fixed GPF in GaugeNew(). Old bug. (leak and non-function was a misreport, it was indeed this GPF. Now it works correctly.) --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbclipsm/gauge.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index aaf1319d45..7aafe4cd99 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-05-26 12:23 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * contrib/hbclipsm/gauge.c + ! Fixed GPF in GaugeNew(). Old bug. + (leak and non-function was a misreport, it + was indeed this GPF. Now it works correctly.) + 2008-05-26 12:13 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * include/hbapi.h * source/vm/extend.c diff --git a/harbour/contrib/hbclipsm/gauge.c b/harbour/contrib/hbclipsm/gauge.c index 61bb5d4e25..a10303dea9 100644 --- a/harbour/contrib/hbclipsm/gauge.c +++ b/harbour/contrib/hbclipsm/gauge.c @@ -95,7 +95,7 @@ HB_FUNC( GAUGENEW ) !( ISNUM( B_RIGHT ) && ISNUM( B_LEFT ) && ( hb_parni( B_RIGHT ) < hb_parni( B_LEFT ) + 9 ) ) ); - hb_arraySetC( pReturn, B_BARCHAR, ISCHAR( B_BARCHAR ) ? hb_parc( B_BARCHAR ) : ( char * ) '\xdb' ); + hb_arraySetC( pReturn, B_BARCHAR, ISCHAR( B_BARCHAR ) ? hb_parc( B_BARCHAR ) : "\xdb" ); hb_arraySetNL( pReturn, B_PERCENT, 0 ); hb_itemReturnRelease( pReturn );