[comp.sources.x] v04i090: Patch to xplot

argv@island.uu.net (Dan Heller) (08/09/89)

Submitted-by: arthur@helios.tn.cornell.edu (Arthur Smith)
Posting-number: Volume 4, Issue 90
Archive-name: xplot/patch1
Patch-To: Xplot, Volume 4, Issue 81

It has come to my attention that the plot (3x) library I supplied
with xplot did not actually handle the strings in label and linemod
correctly (it assumed the argument string already contained a newline,
which is required by plot(5), but not in the subroutines). A patch
is included here:

-------------------------- cut here -----------------------------------
*** xplot/xlibplot/xlibplot.c-	Fri Aug  4 14:46:16 1989
--- xplot/xlibplot/xlibplot.c	Fri Aug  4 15:06:40 1989
***************
*** 28,33 ****
--- 28,34 ----
  char *s;
  {
  	strcpy(xplotlib_buf,s);
+ 	strcat(xplotlib_buf, "\n");
  	putentry('t',strlen(xplotlib_buf));
  }
  
***************
*** 103,108 ****
--- 104,110 ----
  char *s;
  {
  	strcpy(xplotlib_buf,s);
+ 	strcat(xplotlib_buf, "\n");
  	putentry('f',strlen(xplotlib_buf));
  }
  
-------------------------- cut here -----------------------------------

					Arthur Smith
arthur@helios.tn.cornell.edu (arpanet)
arthur@crnlassp		(bitnet)