mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 06:29:38 +02:00
* fixed wrong getmem
This commit is contained in:
parent
7a72f78fe0
commit
ebe1ebc5a9
@ -128,7 +128,7 @@ begin
|
|||||||
{ SetLength(s, TranslTable^[i].length);
|
{ SetLength(s, TranslTable^[i].length);
|
||||||
AStream.Read(s[1], TranslTable^[i].length);
|
AStream.Read(s[1], TranslTable^[i].length);
|
||||||
TranslStrings^[i] := StrNew(PChar(s));}
|
TranslStrings^[i] := StrNew(PChar(s));}
|
||||||
GetMem(TranslStrings^[i], TranslTable^[i].length);
|
GetMem(TranslStrings^[i], TranslTable^[i].length+1);
|
||||||
AStream.Read(TranslStrings^[i]^, TranslTable^[i].length);
|
AStream.Read(TranslStrings^[i]^, TranslTable^[i].length);
|
||||||
TranslStrings^[i][TranslTable^[i].length] := #0;
|
TranslStrings^[i][TranslTable^[i].length] := #0;
|
||||||
end;
|
end;
|
||||||
@ -310,7 +310,10 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.4 2001-09-21 12:52:54 sg
|
Revision 1.5 2002-01-19 11:54:52 peter
|
||||||
|
* fixed wrong getmem
|
||||||
|
|
||||||
|
Revision 1.4 2001/09/21 12:52:54 sg
|
||||||
* Evaluates all 3 i18n environment variables: LC_ALL, LC_MESSAGES, LANG
|
* Evaluates all 3 i18n environment variables: LC_ALL, LC_MESSAGES, LANG
|
||||||
* Now takes sublanguage specifiers into account: When the language is set
|
* Now takes sublanguage specifiers into account: When the language is set
|
||||||
to xx_YY, then the catalogue for xx will be loaded first, and then the
|
to xx_YY, then the catalogue for xx will be loaded first, and then the
|
||||||
|
Loading…
Reference in New Issue
Block a user