dan@cb2b:~# ttylog -v
ttylog version 0.25.
dan@cb2b:~# ttylog -d /dev/ttyUSB0
ttylog: invalid device /d
dan@cb2b:~#
The problem is caused by the additional \0 when copying the argv to the modem_device string. it will always be cut off after 2 chars.
The solution is pretty easy:
dan@cb2b:~# diff -Nur ttylog-code/ttylog.c_orig ttylog-code/ttylog.c
--- ttylog-code/ttylog.c_orig 2014-02-14 23:35:13.311886020 +0000
+++ ttylog-code/ttylog.c 2014-02-14 23:35:48.661886037 +0000
@@ -97,7 +97,7 @@
{
memset (modem_device, '\0', sizeof(modem_device));
strncpy (modem_device, argv[i + 1], sizeof(modem_device)-1);
(tested on ubuntu linux)
Anonymous
Also included with https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731086.
Thanks a lot :-)
On 31. Mai 2015 23:26:57 MESZ, Robert James Clay jame@users.sf.net wrote:
--
Diese Nachricht wurde von meinem Mobiltelefon mit Kaiten Mail gesendet.
Related
Patches:
#3Implemented patch with commit [f5dc5c] and released today with version v0.26.
Related
Commit: [f5dc5c]