[comp.windows.x] Changes to xpeg for System V.3.2

martin@clubmed.hf.intel.com.ogi.edu (09/07/90)

Here are some patches that I needed to make to get xpeg to run on
a System V.3.2 AT class machine.

The patches fix problems with freeing a NULL pointer (could be a typo...) ,
lines to long and calls to 
XtVaGetValues need to be NULL terminated....

enjoy....

pegbd.c
---------------------------------------------
162c162
<     free(group);    
---
>     free(NULL);    

xpeg.c
---------------------------------------------
34c34,35
<   printf("	 pegfile    - a valid Xpeg file, xpeg will quit if it is not.\n\n");
---
>   printf("	 pegfile    - a valid Xpeg file, xpeg will quit if it is
> not.\n\n");
38c39,40
<   printf(" These enviroment variables can be used instead of the command line options:\n\n");
---
>   printf(" These enviroment variables can be used instead of the
> command line options:\n\n");
41c43,44
<   printf(" The command line interface will override the environment variables.\n");
---
>   printf(" The command line interface will override the environment
> variables.\n");

xui.c
---------------------------------------------
448c448
<   XtVaGetValues(groupEditor,"string",&group, NULL);
---
>   XtVaGetValues(groupEditor,"string",&group);
480,481c480,481
<    XtVaGetValues(nameEditor,"string",&name, NULL);
<    XtVaGetValues(locEditor,"string",&location, NULL);
---
>    XtVaGetValues(nameEditor,"string",&name);
>    XtVaGetValues(locEditor,"string",&location);


                          
                  _/_          |
 ______  __.  __  /  o ____    |  textronix!reed!intelhf!clubmed!martin
/ / / <_(_/|_/ (_<__<_/ / <    |
                               |  martin@clubmed.hf.intel.com
                               |