gnome-commander r2162 - in branches/gcmd-1-3: . plugins/cvs
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2162 - in branches/gcmd-1-3: . plugins/cvs
- Date: Tue, 7 Oct 2008 17:11:59 +0000 (UTC)
Author: epiotr
Date: Tue Oct 7 17:11:59 2008
New Revision: 2162
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2162&view=rev
Log:
Fixed problem #555288 (build fix)
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/plugins/cvs/interface.c
Modified: branches/gcmd-1-3/plugins/cvs/interface.c
==============================================================================
--- branches/gcmd-1-3/plugins/cvs/interface.c (original)
+++ branches/gcmd-1-3/plugins/cvs/interface.c Tue Oct 7 17:11:59 2008
@@ -347,11 +347,14 @@
fd = popen (cmd, "r");
- if (fd < 0) return;
- do {
+ if (fd==0) return;
+
+ do
+ {
ret = fread (buf, 1, 256, fd);
gtk_text_buffer_insert_at_cursor (text_buffer, buf, ret);
- } while (ret == 256);
+ }
+ while (ret == 256);
gtk_text_view_set_buffer (GTK_TEXT_VIEW (text_view), text_buffer);
pclose (fd);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]