Subject: floppy echo
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: current-users
Date: 04/19/1994 20:57:35
When I rebuilt -current (Apr 19) and installed it
I got the floppy version echo instead of the real one.
You see this easily because it's broken :-)

Here's the fix.

And echo does not seem to be the only program that 
got overwritten.

	-- Lennart


*** /sys/arch/i386/floppy/echo/echo.c.orig	Tue Apr 19 14:56:13 1994
--- /sys/arch/i386/floppy/echo/echo.c	Tue Apr 19 14:56:31 1994
***************
*** 32,38 ****
  #include <string.h>
  #include <unistd.h>
  
! #define	writestr(x)	write(STDOUT_FILENO, x, sizeof(x))
  
  /* ARGSUSED */
  main(argc, argv)
--- 32,38 ----
  #include <string.h>
  #include <unistd.h>
  
! #define	writestr(x)	write(STDOUT_FILENO, x, strlen(x))
  
  /* ARGSUSED */
  main(argc, argv)

------------------------------------------------------------------------------