mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dttypes should not crash on 64-bit system
Casting (int) to (char **) will not prevent crash on a 64-bit system. A proper ANSI prototype has been added.
This commit is contained in:
parent
1041e08003
commit
6b1d497984
1 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ static int rexp_errno = 0;
|
||||||
#define NL_CAT_LOCALE 0
|
#define NL_CAT_LOCALE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern char ** _DtsMMListDb(void);
|
||||||
static enum errors
|
static enum errors
|
||||||
{
|
{
|
||||||
BAD_DB,
|
BAD_DB,
|
||||||
|
@ -653,7 +654,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dbs = (char **)_DtsMMListDb();
|
dbs = _DtsMMListDb();
|
||||||
for(i = 0; dbs[i]; i++)
|
for(i = 0; dbs[i]; i++)
|
||||||
{
|
{
|
||||||
printf(catgets(dtcatd, 1, 29, "--------------------- %s ----------------\n"),
|
printf(catgets(dtcatd, 1, 29, "--------------------- %s ----------------\n"),
|
||||||
|
|
Loading…
Reference in a new issue