File minicom-2.5-serial_device_path_length.patch of Package minicom
Index: minicom-2.5/src/configsym.h
===================================================================
--- minicom-2.5.orig/src/configsym.h 2009-12-12 16:47:47.000000000 +0100
+++ minicom-2.5/src/configsym.h 2011-10-18 13:49:43.821824410 +0200
@@ -35,7 +35,7 @@
* jl 10.02.2000 parameter P_STOPB
*/
-#define PARS_VAL_LEN 64
+#define PARS_VAL_LEN 256
struct pars {
/* value is first, so that (char *)mpars[0] == mpars[0].value */
Index: minicom-2.5/src/config.c
===================================================================
--- minicom-2.5.orig/src/config.c 2011-10-18 13:49:43.000000000 +0200
+++ minicom-2.5/src/config.c 2011-10-18 13:56:20.248476067 +0200
@@ -561,7 +561,7 @@
mc_wclose(w, 1);
return;
case 'A':
- pgets(w, mbslen (serial_device) + 1, 0, P_PORT, 64, 64);
+ pgets(w, mbslen (serial_device) + 1, 0, P_PORT, PARS_VAL_LEN, PARS_VAL_LEN);
break;
case 'B':
pgets(w, mbslen (lockfile_location) + 1, 1, P_LOCK, 64, 64);