Novell Home

TID101518 (LCONV1) - Issue: Incorrect Pascal declaration of LCONV.Date format

From Developer Community

LCONV.Date_format is incorrectly declared as 'char' in NWLOCALE.INC (SDK vol 13/14, probably also in vol 15), while it should be an 'nint' like in the NWLOCALE.H. Since these types have different sizes this may result in memory overwrites and unspecific program crashes or errors. Until this is fixed in the headers, please redefine LCONV.date_format as 'nint' in NWLOCALE.INC and recompile.

Issue: Incorrect Pascal declaration of LCONV.Date_format

LCONV.Date_format is incorrectly declared as 'char' in NWLOCALE.INC (SDK vol 13/14, 
probably also in vol 15), while it should be an 'nint' like in the NWLOCALE.H. Since these 
types have different sizes this may result in memory overwrites and unspecific program 
crashes or errors. Until this is fixed in the headers, please redefine LCONV.date_format as 
'nint' in NWLOCALE.INC and recompile.

--devsup

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.