summaryrefslogtreecommitdiff
path: root/app/bin/cmisc.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-05-27 14:58:02 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-05-27 14:58:02 +0200
commit359b557176b9bb2ff1aed2082641eed39c358d0d (patch)
treef6c2baca2e6a5d06b7bf32e48e475a6b7b1ea262 /app/bin/cmisc.c
parent9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (diff)
New upstream version 5.1.2aupstream/5.1.2a
Diffstat (limited to 'app/bin/cmisc.c')
-rw-r--r--app/bin/cmisc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/bin/cmisc.c b/app/bin/cmisc.c
index 4822540..a353530 100644
--- a/app/bin/cmisc.c
+++ b/app/bin/cmisc.c
@@ -347,6 +347,10 @@ static wControl_p AllocateButt(descData_p ddp, void * valueP, char * label,
describeW_posy += wControlGetHeight(describePLs[inx].control) + sep;
describePLs[inx].context = ddp;
describePLs[inx].valueP = valueP;
+ if ((ddp->type == DESC_STRING) && ddp->max_string) {
+ describePLs[inx].max_string = ddp->max_string;
+ describePLs[inx].option |= PDO_STRINGLIMITLENGTH;
+ }
if (label && ddp->type != DESC_TEXT) {
wControlSetLabel(describePLs[inx].control, label);