plot3d fixed after https://codereview.scilab.org/#/c/16264/
[scilab.git] / scilab / modules / graphics / sci_gateway / c / sci_plot3d.c
index 93d91f8..ef56c10 100644 (file)
@@ -147,7 +147,7 @@ int sci_plot3d(char * fname, unsigned long fname_len)
         l2 = (double *)MALLOC(sizeof(double) * n2);
         for (i = 0; i < n2; ++i)
         {
-            l1[i] = i + 1;
+            l2[i] = i + 1;
         }
 
         mustFree = 1;