Index: /trunk/psphot/src/psphotDiagnosticPlots.c
===================================================================
--- /trunk/psphot/src/psphotDiagnosticPlots.c	(revision 18845)
+++ /trunk/psphot/src/psphotDiagnosticPlots.c	(revision 18846)
@@ -123,6 +123,9 @@
 
     // pause until user types 'return'
-    fprintf (stdout, "press return");
-    fgets (line, 64, stdin);
+    fprintf(stdout, "press return");
+    if (!fgets(line, 64, stdin)) {
+        // This is just to avoid a compiler warning on some systems; it's not really necessary
+        psWarning("Couldn't read anything.");
+    }
 
     psFree (stats);
