=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/sftp-int.c,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- src/usr.bin/ssh/Attic/sftp-int.c 2003/07/19 00:45:53 1.61 +++ src/usr.bin/ssh/Attic/sftp-int.c 2003/08/25 08:13:09 1.62 @@ -25,7 +25,7 @@ /* XXX: recursive operations */ #include "includes.h" -RCSID("$OpenBSD: sftp-int.c,v 1.61 2003/07/19 00:45:53 djm Exp $"); +RCSID("$OpenBSD: sftp-int.c,v 1.62 2003/08/25 08:13:09 fgsch Exp $"); #include @@ -602,6 +602,7 @@ width = ws.ws_col; columns = width / (m + 2); + columns = MAX(columns, 1); colspace = width / columns; } @@ -688,6 +689,7 @@ width = ws.ws_col; columns = width / (m + 2); + columns = MAX(columns, 1); colspace = width / columns; }