Package: ttylog Version: 0.25-1 Severity: important Dear Maintainer,
Selecting serial device fails with the error, e.g.: $ ttylog -d /dev/ttyACM0 -b 9600 ttylog: invalid device /d Device name is cut just after 'd', with null character. Attaching patch with fix. -- System Information: Debian Release: wheezy/sid APT prefers saucy-updates APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy'), (100, 'saucy-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11.0-13-generic (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages ttylog depends on: ii libc6 2.17-93ubuntu4 ttylog recommends no packages. ttylog suggests no packages. -- no debconf information
>From 05469b7631030a5799a0a3172b5e7030f4a2385c Mon Sep 17 00:00:00 2001 From: Andrzej Bieniek <andyh...@gmail.com> Date: Sun, 1 Dec 2013 20:16:22 +0000 Subject: [PATCH] Fix serial device name corruption Selecting serial device was failing with the error, e.g.: $ ttylog -d /dev/ttyACM0 -b 9600 ttylog: invalid device /d --- ttylog.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ttylog.c b/ttylog.c index 6978647..78062f9 100644 --- a/ttylog.c +++ b/ttylog.c @@ -97,7 +97,6 @@ main (int argc, char *argv[]) { memset (modem_device, '\0', sizeof(modem_device)); strncpy (modem_device, argv[i + 1], sizeof(modem_device)-1); - modem_device[i + 1] = '\0'; } else { -- 1.8.3.2