forked from pool/gnucap
16 lines
734 B
Diff
16 lines
734 B
Diff
|
diff -up gnucap-0.35/src/plot.cc~ gnucap-0.35/src/plot.cc
|
||
|
--- gnucap-0.35/src/plot.cc~ 2016-04-26 09:16:25.000000000 +0200
|
||
|
+++ gnucap-0.35/src/plot.cc 2016-04-26 09:18:43.392162278 +0200
|
||
|
@@ -231,9 +231,9 @@ static void plotarg(
|
||
|
double yhi,
|
||
|
double zhi)
|
||
|
{
|
||
|
- auto char adata[MAXWIDTH+1]; /* actual data. copy emptydata, insert */
|
||
|
+ char adata[MAXWIDTH+1]; /* actual data. copy emptydata, insert */
|
||
|
char *xxs; /* string representation of xx */
|
||
|
- memcpy(adata, emptydata, MAXWIDTH); /* copy prototype */
|
||
|
+ memcpy(adata, emptydata, MAXWIDTH + 1); /* copy prototype */
|
||
|
xxs = ftos( xx, 11, 5, IO::formaat );
|
||
|
if (zz != NOT_VALID) {
|
||
|
adata[point(zz,zlo,zhi,CONSSCALE,0,1)] = '+';/* zap data into string */
|