bug-gnu-electric
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug fix in src/graph/graphunixx11.c


From: John De Ryckere
Subject: Bug fix in src/graph/graphunixx11.c
Date: Wed, 10 Jan 2001 11:42:01 -0500 (EST)

Hi,

After compiling Electric I tried to start it up only to get a segmentation
violation. The problem occurs because len isn't set to the length of pt
after its been reallocated. The diff is below:

*** src/graph/graphunixx11.c    2001/01/10 15:45:56     1.1
--- src/graph/graphunixx11.c    2001/01/10 15:50:22
***************
*** 1925,1930 ****
--- 1925,1931 ----
pt = returninfstr();
if (fileexistence(pt) == 1)
{
+               len = strlen(pt);
pt[len-6] = 0;
(void)allocstring(&el_libdir, pt, db_cluster);
return;


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]