FreeBSD Bugzilla – Attachment 164950 Details for
Bug 205796
[patch] math/xgraph - fix two Segmentation fault problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patchs, xgraph.c for problem-[1], xtb.h for problem-[2]
patchs (text/plain), 1.05 KB, created by
uratan
on 2016-01-02 10:55:20 UTC
(
hide
)
Description:
patchs, xgraph.c for problem-[1], xtb.h for problem-[2]
Filename:
MIME Type:
Creator:
uratan
Created:
2016-01-02 10:55:20 UTC
Size:
1.05 KB
patch
obsolete
>--- xgraph.c-before 2016-01-02 10:57:19.003637000 +0900 >+++ xgraph.c 2016-01-02 12:38:56.493402000 +0900 >@@ -402,7 +402,18 @@ > fg_color = PM_COLOR("Foreground"); > bg_color = PM_COLOR("Background"); > XRecolorCursor(disp, zoomCursor, &fg_color, &bg_color); >- init_X(win_info->dev_info.user_state); >+#if 0 >+ /* legitimate correction shall be like this, but ... */ >+ if (XFindContext(disp, primary, win_context, (caddr_t *) &win_info)) { >+ /* Nothing found */ >+ (void) fprintf(stderr, "Can't get Context\n"); >+ } else { >+ init_X(win_info->dev_info.user_state); >+ } >+#else >+ /* ... init_X() does not use the parameter (which has only Window ID now) */ >+ init_X(NULL); /* QUICK HACK */ >+#endif > > Num_Windows = 1; > while (Num_Windows > 0) { >--- xtb.h-before 1997-07-17 03:40:41.000000000 +0900 >+++ xtb.h 2016-01-02 12:42:54.971172000 +0900 >@@ -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 */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205796
: 164950 |
167138