Index: trunk/Ohana/src/opihi/cmd.data/point.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/point.c	(revision 2843)
+++ trunk/Ohana/src/opihi/cmd.data/point.c	(revision 3693)
@@ -44,6 +44,4 @@
   }
 
-  ALLOCATE (line, char, 1024);     /* space to read the file */
-
   ra = atof(argv[3]);
   dec = atof(argv[4]);
@@ -70,18 +68,10 @@
   }
 
-  write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
-  sprintf (line, "OVERLAY %6d ", n);
-  write (Ximage, line, 16);
-  sprintf (line, "NLINES %7d ", 1);
-  write (Ximage, line, 16);
-  sprintf (line, "%15s %20.10f %20.10f %20.10f %20.10f ", argv[2], x, y, dx, dy);
-  write (Ximage, line, 128);
-  sprintf (line, "DONE ");
-  write (Ximage, line, 16);
-
-  free (line);
-
+  SendGraphCommand (Ximage, 4, "LOAD");
+  SendGraphCommand (Ximage, 16, "OVERLAY %6d ", n);
+  SendGraphCommand (Ximage, 16, "NLINES %7d ", 1);
+  SendGraphCommand (Ximage, 128, "%15s %20.10f %20.10f %20.10f %20.10f ", argv[2], x, y, dx, dy);
+  SendGraphCommand (Ximage, 16, "DONE");
   return (TRUE);
-
 }
 
