Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-01

Bug in Gettext

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gernot Tenchio

Hi,

After some hours of debugging my own application i have found a bug in the gettext unit.

Line 131 of gettext.pp:
	GetMem(TranslStrings^[i], TranslTable^[i].length);
should be replaced with:
	GetMem(TranslStrings^[i], TranslTable^[i].length + 1);

MfG, Gernot Tenchio

office: g.tenchio_AT_telco-tech_DOT_de http://www.telco-tech.de/ privat: gernot_AT_tenchio_DOT_de http://www.tenchio.de/ Person who say it cannot be done should not interrupt person doing it. --Chinese Proverb

Reply by email

Peter Vreman
to Gernot Tenchio
you wrote 9 lines
Hi, After some hours of debugging my own application i have found a bug in the gettext unit. Line 131 of gettext.pp: GetMem(TranslStrings^[i], TranslTable^[i].length); should be replaced with: GetMem(TranslStrings^[i], TranslTable^[i].length + 1);

Thanks for reporting, it's fixed

Peter

Reply by email