On Fri, 11 Jan 2008, Szakáts Viktor wrote: > Hi Przemek, > I think there is such an unsafe usage of hb_itemGetCPtr() > in philes.c / FREAD(). > That one sprang to my mind, but maybe there are more.
Now it's safe because hb_itemUnShareString() is used but I would like to eliminae this functions from public API and replace it with hb_itemLockWriteCPtr()/hb_itemUnLockCPtr() so I'll update FREAD() and also HB_INETRECV(), HB_INETDGRAMRECV(), STRPOKE() and HB_UTF8POKE() ASAP. I also want to cover hb_parcsiz() usage in FREAD() by HB_C52_STRICT macro. I do not like that public .prg level function allows to eliminate chr(0) terminator from HB_ITEM strings what can be source of some unpredictable errors (f.e. GPF) in other subsystems which expects that strings are always NULL terminated. I hope it will not be very big problem. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour