From 659c0030be7d7d93f4e6780cfd25ae1ef5021d06 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 2 Nov 2008 06:43:45 +0000 Subject: [PATCH] 2008-11-02 07:39 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/version.c ! Added missing header from previous change. * source/vm/itemapi.c ! snprintf() -> hb_snprintf() This got incidentally reverted in previous commit by mistake. --- harbour/ChangeLog | 8 ++++++++ harbour/source/rtl/version.c | 1 + harbour/source/vm/itemapi.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 379125851f..1d1958a02f 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,14 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2008-11-02 07:39 UTC+0200 Viktor Szakats (harbour.01 syenar hu) + * source/rtl/version.c + ! Added missing header from previous change. + + * source/vm/itemapi.c + ! snprintf() -> hb_snprintf() + This got incidentally reverted in previous commit by mistake. + 2008-11-02 07:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbstdgen.ch - Removed HB_VERSION mistakenly left there. diff --git a/harbour/source/rtl/version.c b/harbour/source/rtl/version.c index 187fd3fe87..2c7c8d4be4 100644 --- a/harbour/source/rtl/version.c +++ b/harbour/source/rtl/version.c @@ -62,6 +62,7 @@ */ #include "hbapi.h" +#include "hbvm.h" #include "hbver.ch" diff --git a/harbour/source/vm/itemapi.c b/harbour/source/vm/itemapi.c index 8689d268dd..825091814a 100644 --- a/harbour/source/vm/itemapi.c +++ b/harbour/source/vm/itemapi.c @@ -2495,7 +2495,7 @@ HB_EXPORT char * hb_itemString( PHB_ITEM pItem, ULONG * ulLen, BOOL * bFreeReq ) buffer = ( char * ) hb_xgrab( size ); do { - n = snprintf( buffer, size, "%p", hb_itemGetPtr( pItem ) ); + n = hb_snprintf( buffer, size, "%p", hb_itemGetPtr( pItem ) ); if( (n > -1) && (n < size) ) { bFail = FALSE;