summaryrefslogtreecommitdiff
path: root/src/print_panel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_panel.cxx')
-rw-r--r--src/print_panel.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/print_panel.cxx b/src/print_panel.cxx
index d9d8781..ee2e424 100644
--- a/src/print_panel.cxx
+++ b/src/print_panel.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: print_panel.cxx 7480 2010-04-11 18:42:35Z AlbrechtS $"
+// "$Id: print_panel.cxx 7765 2010-10-28 18:02:20Z matt $"
//
// Print panel for the Fast Light Tool Kit (FLTK).
//
@@ -574,7 +574,7 @@ void print_update_status() {
if (print_choice->value()) {
snprintf(command, sizeof(command), "lpstat -p '%s'", printer);
if ((lpstat = popen(command, "r")) != NULL) {
- fgets(status, sizeof(status), lpstat);
+ if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ }
pclose(lpstat);
} else strcpy(status, "printer status unavailable");
} else status[0] = '\0';
@@ -594,5 +594,5 @@ void print_update_status() {
}
//
-// End of "$Id: print_panel.cxx 7480 2010-04-11 18:42:35Z AlbrechtS $".
+// End of "$Id: print_panel.cxx 7765 2010-10-28 18:02:20Z matt $".
//