Index: trunk/Ohana/src/opihi/cmd.astro/outline.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/outline.c	(revision 2598)
+++ trunk/Ohana/src/opihi/cmd.astro/outline.c	(revision 3693)
@@ -158,7 +158,6 @@
       Nline = 0;
       
-      write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
-      sprintf (line, "OVER %9d ", 0);
-      write (Ximage, line, 16);
+      SendGraphCommand (Ximage, 4, "LOAD");
+      SendGraphCommand (Ximage, 16, "OVER %9d ", 0);
       
       dx = par[2];
@@ -178,6 +177,5 @@
 	
 	if (Nline >= 510) {
-	  sprintf (line, "NLINES  %7d ", Nline);
-	  write (Ximage, line, 16);
+	  SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
 	  write (Ximage, buffer, Nline*128);
 	  bzero (buffer, 65536);
@@ -185,10 +183,9 @@
 	}
       }
-      
-      sprintf (line, "NLINES  %7d ", Nline);
-      write (Ximage, line, 16);
+
+      SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
       write (Ximage, buffer, Nline*128);
-      sprintf (line, "DONE ");
-      write (Ximage, line, 16);
+      SendGraphCommand (Ximage, 16, "DONE");
+
       free (buffer);
       free (line);
