E bug (patch included)



I've found a bug thats makes E segfault when a session is saved. I've
included a patch that fixes it (at least for me).

	/Mattias
? diff
Index: src/session.c
===================================================================
RCS file: /cvs/gnome/e/src/session.c,v
retrieving revision 1.10
diff -c -r1.10 session.c
*** session.c	1998/12/23 05:40:50	1.10
--- session.c	1999/01/03 15:21:58
***************
*** 87,108 ****
     SmProp             *props[4];
  
     programProp.name = (char *)SmProgram;
!    programProp.name = (char *)SmLISTofARRAY8;
     programProp.num_vals = 1;
     programProp.vals = &programVal;
  
     userIDProp.name = (char *)SmUserID;
!    userIDProp.name = (char *)SmLISTofARRAY8;
     userIDProp.num_vals = 1;
     userIDProp.vals = &userIDVal;
  
     restartProp.name = (char *)SmRestartCommand;
!    restartProp.name = (char *)SmLISTofARRAY8;
     restartProp.num_vals = 3;
     restartProp.vals = (SmPropValue *) & restartVal;
  
     cloneProp.name = (char *)SmCloneCommand;
!    cloneProp.name = (char *)SmLISTofARRAY8;
     cloneProp.num_vals = 3;
     cloneProp.vals = (SmPropValue *) & restartVal;
  
--- 87,108 ----
     SmProp             *props[4];
  
     programProp.name = (char *)SmProgram;
!    programProp.type = (char *)SmLISTofARRAY8;
     programProp.num_vals = 1;
     programProp.vals = &programVal;
  
     userIDProp.name = (char *)SmUserID;
!    userIDProp.type = (char *)SmLISTofARRAY8;
     userIDProp.num_vals = 1;
     userIDProp.vals = &userIDVal;
  
     restartProp.name = (char *)SmRestartCommand;
!    restartProp.type = (char *)SmLISTofARRAY8;
     restartProp.num_vals = 3;
     restartProp.vals = (SmPropValue *) & restartVal;
  
     cloneProp.name = (char *)SmCloneCommand;
!    cloneProp.type = (char *)SmLISTofARRAY8;
     cloneProp.num_vals = 3;
     cloneProp.vals = (SmPropValue *) & restartVal;
  


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