xgraph segfault when hdcpy button pressed
I made the following changes to "xtb.h" file in ns2.35, but it seems the problem still exists.
My os is ubuntu 13.04, later upgraded to ubuntu 13.10 (64 bits).
If I run the xgraph command, I can see the generated graphs, but when 'hdcpy' is pressed there is a segmentation fault (core dumped) message coming.
After the following changes, I did not reconfigure or make xgraph hdcpy in my system, because if I do then it says:
make:*** no rule to make target 'xgraph'. stop.
Please let me know if there is any other way to save/print the graphs.
=== modified file 'xtb.h'
--- xtb.h 2009-03-08 21:00:13 +0000
+++ xtb.h 2013-05-02 17:35:10 +0000
@@ -164,7 +164,7 @@
xtb_fmt_align align;
} xtb_fmt;
-#define NE 0
+#define NE ((xtb_fmt*)0)
DECLARE(xtb_w, xtb_fmt *, (xtb_frame *w));
/* Returns formatting structure for frame */
|