mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtdocbook: fix a segmentation fault.
This commit is contained in:
parent
bc39b47162
commit
12f2fb1f10
1 changed files with 5 additions and 3 deletions
|
@ -882,11 +882,13 @@ ReadLocaleStrings(const char *file_name, int *ret_code) {
|
|||
|
||||
i18nBuf = EscapeI18NChars(pBuf);
|
||||
if (i18nBuf != pBuf) {
|
||||
free(pBuf);
|
||||
pBuf = Tcl_Realloc(pBuf, 1 + strlen(i18nBuf));
|
||||
strcpy(pBuf, i18nBuf);
|
||||
free(i18nBuf);
|
||||
}
|
||||
|
||||
*ret_code = 0;
|
||||
return i18nBuf;
|
||||
return pBuf;
|
||||
}
|
||||
|
||||
static int TclReadLocaleStrings(ClientData clientData,
|
||||
|
@ -1093,7 +1095,7 @@ ReadESIS(
|
|||
char *buf, *i18nBuf;
|
||||
int i, c, ncont;
|
||||
Element_t *e;
|
||||
Content_t cont[5000];
|
||||
Content_t cont[5000] = {0};
|
||||
|
||||
Malloc( LINESIZE+1, buf, char );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue