Index: trunk/Ohana/src/relphot/src/ZeroPointModes.c
===================================================================
--- trunk/Ohana/src/relphot/src/ZeroPointModes.c	(revision 41562)
+++ trunk/Ohana/src/relphot/src/ZeroPointModes.c	(revision 41598)
@@ -8,5 +8,5 @@
     int newValue;
     fprintf (stdout, "Set Iteration (current = %d): ", CurrentLoop);
-    fscanf (stdin, "%d", &newValue);
+    if (!fscanf (stdin, "%d", &newValue)) return;
     fprintf (stdout, "Using iteration %d\n", newValue);
     CurrentLoop = newValue;
