openbsd-ports/comms/minicom/patches/patch-src_updown_c
ckuethe 20bc216713 As I seem to be the only minicom user, take maintainership.
Update from 2.00.0 to 2.2.
Minicom 2.2 includes improved logging
2007-05-23 16:40:55 +00:00

22 lines
797 B
Plaintext

$OpenBSD: patch-src_updown_c,v 1.2 2007/05/23 16:40:56 ckuethe Exp $
--- src/updown.c.orig Sun Aug 14 14:39:30 2005
+++ src/updown.c Thu May 17 12:58:26 2007
@@ -40,7 +40,7 @@ static int mcd(char *dir)
{
char buf[256];
char err[50];
- static char odir[256];
+ static char odir[PATH_MAX];
static int init = 0;
if (!init) {
@@ -240,7 +240,7 @@ void updown(int what, int nr)
do_log("%s", cmdline); /* jl 22.06.97 */
if (P_PFULL(g) == 'N') {
- win = wopen(10, 7, 70, 13, BSINGLE, stdattr, mfcolor, mbcolor, 1, 0, 1);
+ win = wopen(5, 5, 74, 11, BSINGLE, stdattr, mfcolor, mbcolor, 1, 0, 1);
snprintf(title, sizeof(title), _("%.30s %s - Press CTRL-C to quit"), P_PNAME(g),
what == 'U' ? _("upload") : _("download"));
wtitle(win, TMID, title);