Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zfsession function log out and segmentation fault



"V. L. Simpson" wrote:
> While using zftp system with zsh-3.1.6-pws-10
> zfsession returns default
> zfsession -l kicks me out to my login prompt.

For some reason, I had more trouble with the session subcommand than any of
the others.  I shall write out a hundred times `fixed-size buffers without
tests are hostages to fortune'.

--- Src/Modules/zftp.c.sess	Fri Dec  3 18:47:07 1999
+++ Src/Modules/zftp.c	Wed Dec  8 21:10:48 1999
@@ -3076,7 +3076,7 @@
 static int
 bin_zftp(char *name, char **args, char *ops, int func)
 {
-    char fullname[11] = "zftp ";
+    char fullname[20] = "zftp ";
     char *cnam = *args++, *prefs, *ptr;
     Zftpcmd zptr;
     int n, ret = 0;

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author