Number: 17
Title: Bad function pointer declaration
Submitter: Bob Lied
Date: Thu May 31 12:55:00 2001
Subsys: Dot
Version: 1.7.6
System: Other-Other-ibm370-amdahl-uts
Severity: minor
Problem:
nodesizefn_t is a function pointer, but in its
typedef declaration, there is no '*'. This causes
the Lexa compiler on UTS to dump core when the
function pointer is dereferenced.
Fix:
dotneato/common/renderprocs.h
@@ -8,7 +8,7 @@
it without violating AT&T's intellectual property rights.
*/
-typedef void (nodesizefn_t)(Agnode_t*, boolean);
+typedef void (*nodesizefn_t)(Agnode_t*, boolean);
extern point add_points(point, point);
extern double atan2pt(point, point);
Owner: john
Status: Fixed