projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1041e08
)
dttypes should not crash on 64-bit system
author
Marcin Cieslak
<saper@saper.info>
Fri, 21 Sep 2012 20:44:28 +0000
(22:44 +0200)
committer
Jon Trulson
<jon@radscan.com>
Sun, 23 Sep 2012 01:04:27 +0000
(19:04 -0600)
Casting (int) to (char **) will not
prevent crash on a 64-bit system.
A proper ANSI prototype has been added.
cde/programs/util/dttypes/dttypes.c
patch
|
blob
|
history
diff --git
a/cde/programs/util/dttypes/dttypes.c
b/cde/programs/util/dttypes/dttypes.c
index 63ac35b88bbc8413507118c1a28193355ec628c4..00ce79189f2807a7120763077fafc8accbeb302d 100644
(file)
--- a/
cde/programs/util/dttypes/dttypes.c
+++ b/
cde/programs/util/dttypes/dttypes.c
@@
-56,6
+56,7
@@
static int rexp_errno = 0;
#define NL_CAT_LOCALE 0
#endif
+extern char ** _DtsMMListDb(void);
static enum errors
{
BAD_DB,
@@
-653,7
+654,7
@@
main(int argc, char **argv)
}
else
{
- dbs =
(char **)
_DtsMMListDb();
+ dbs = _DtsMMListDb();
for(i = 0; dbs[i]; i++)
{
printf(catgets(dtcatd, 1, 29, "--------------------- %s ----------------\n"),