Index: trunk/Ohana/src/kapa/graph/SetLimits.c
===================================================================
--- trunk/Ohana/src/kapa/graph/SetLimits.c	(revision 2473)
+++ trunk/Ohana/src/kapa/graph/SetLimits.c	(revision 5852)
@@ -1,14 +1,7 @@
 # include "Ximage.h"
-# define SCAN \
-status = read (sock, buffer, 16); \
-buffer[16] = 0; \
-sscanf (buffer, "%*s %d", &Nbytes); \
-status = read (sock, buffer, Nbytes); \
-buffer[status] = 0;
 
 int SetLimits () {
   
-  int i, status, Nbytes;
-  char buffer[128];
+  int i;
   double xmin, xmax, ymin, ymax;
   Layout *layout;
@@ -16,6 +9,5 @@
   layout = &section[TheSection];
 
-  SCAN;
-  sscanf (buffer, "%lf %lf %lf %lf", &xmin, &xmax, &ymin, &ymax);
+  KiiScanMessage (sock, "%lf %lf %lf %lf", &xmin, &xmax, &ymin, &ymax);
 
   layout[0].axis[2].min = layout[0].axis[0].min = xmin;
