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:
committed by
Jon Trulson
parent
1041e08003
commit
6b1d497984
@@ -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"),
|
||||||
|
|||||||
Reference in New Issue
Block a user