diff src/event-msw.c @ 280:7df0dd720c89 r21-0b38

Import from CVS: tag r21-0b38
author cvs
date Mon, 13 Aug 2007 10:32:22 +0200
parents 90d73dddcdc4
children c42ec1d1cded
line wrap: on
line diff
--- a/src/event-msw.c	Mon Aug 13 10:31:30 2007 +0200
+++ b/src/event-msw.c	Mon Aug 13 10:32:22 2007 +0200
@@ -574,27 +574,6 @@
 }
 
 static int
-ntpipe_shove_flusher (Lstream *stream)
-{
-  struct ntpipe_shove_stream* s = NTPIPE_SHOVE_STREAM_DATA(stream);
-  int i;
-
-  if (s->error_p)
-    return -1;
-
-  /* We do not want to be blocked forever. Instead, we wait
-     about 0.5 second for output to finish. If this does
-     not help, we just return flush failure. */
-  for (i = 0; i < MAX_FLUSH_TIME / 50; ++i)
-    {
-      if (s->idle_p)
-	return 0;
-      Sleep (50);
-    }
-  return -1;
-}
-
-static int
 ntpipe_shove_closer (Lstream *stream)
 {
   struct ntpipe_shove_stream* s = NTPIPE_SHOVE_STREAM_DATA(stream);
@@ -622,7 +601,6 @@
 init_shove_stream (void)
 {
   LSTREAM_HAS_METHOD (ntpipe_shove, writer);
-  LSTREAM_HAS_METHOD (ntpipe_shove, flusher);
   LSTREAM_HAS_METHOD (ntpipe_shove, was_blocked_p);
   LSTREAM_HAS_METHOD (ntpipe_shove, closer);
 }
@@ -1613,7 +1591,7 @@
 
 	  if (!NILP(btext))
 	    {
-	      strncpy (tttext->szText, XSTRING_DATA (btext), 80);
+	      strncpy (tttext->szText, XSTRING_DATA (btext), XSTRING_LENGTH(btext)+1);
 	      tttext->lpszText=tttext->szText;
 	    }
 #if 0