Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 474780
Collapse All | Expand All

(-)gtkterm-0.99.5/src/widgets.c (-2 / +9 lines)
Lines 604-615 Link Here
604
  guchar val;
604
  guchar val;
605
  guint val_read;
605
  guint val_read;
606
  guint sent = 0;
606
  guint sent = 0;
607
  gchar written[3];
607
  gchar written[4];
608
  gchar *all_written;
608
  gchar *all_written;
609
609
610
  text = (gchar *)gtk_entry_get_text(GTK_ENTRY(widget));
610
  text = (gchar *)gtk_entry_get_text(GTK_ENTRY(widget));
611
  i = strlen(text);
611
612
612
  all_written = g_malloc(strlen(text) * 2);
613
  if ( i == 0 )
614
  {
615
      Put_temp_message("No bytes sent", 1500);
616
      return FALSE;
617
  }
618
619
  all_written = g_malloc(i*2);
613
  all_written[0] = 0;
620
  all_written[0] = 0;
614
621
615
  current = text;
622
  current = text;

Return to bug 474780