File minicom-2.5-serial_device_path_length.patch of Package minicom
Index: minicom-2.6.2/src/configsym.h
===================================================================
--- minicom-2.6.2.orig/src/configsym.h
+++ minicom-2.6.2/src/configsym.h
@@ -35,7 +35,7 @@
* jl 10.02.2000 parameter P_STOPB
*/
-#define PARS_VAL_LEN 128
+#define PARS_VAL_LEN 256
struct pars {
/* value is first, so that (char *)mpars[0] == mpars[0].value */
Index: minicom-2.6.2/src/config.c
===================================================================
--- minicom-2.6.2.orig/src/config.c
+++ minicom-2.6.2/src/config.c
@@ -567,7 +567,7 @@ static void doserial(void)
mc_wclose(w, 1);
return;
case 'A':
- pgets(w, mbslen (serial_device) + 1, 0, P_PORT, 64, 64, 1);
+ pgets(w, mbslen (serial_device) + 1, 0, P_PORT, PARS_VAL_LEN, PARS_VAL_LEN, 1);
break;
#if !HAVE_LOCKDEV
case 'B':