summaryrefslogtreecommitdiff
path: root/app/bin/ctodesgn.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-10 23:05:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-10 23:05:17 +0200
commitc120c7bcbcf115ecc2a6668f4c7f45b3d4a5bc86 (patch)
tree5550610553d1b1d7236d052b6e956b22e0bb4883 /app/bin/ctodesgn.c
parent67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff)
parent26d299964db18cb71c2c6a5be4864479ba82d54f (diff)
Merge branch 'release/debian/5.1.1-1'debian/5.1.1-1
Diffstat (limited to 'app/bin/ctodesgn.c')
-rw-r--r--app/bin/ctodesgn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/bin/ctodesgn.c b/app/bin/ctodesgn.c
index 392b405..45566d1 100644
--- a/app/bin/ctodesgn.c
+++ b/app/bin/ctodesgn.c
@@ -145,13 +145,13 @@ static paramData_t turnDesignPLs[] = {
#define I_TO_LAST_FLOAT (6)
{ PD_FLOAT, &newTurnAngle2, "angle2", PDO_DLGIGNORELABELWIDTH, &r0_360, N_("Angle") },
#define I_TOMANUF (7)
- { PD_STRING, &newTurnManufacturer, "manuf", 0, NULL, N_("Manufacturer") },
+ { PD_STRING, &newTurnManufacturer, "manuf", PDO_STRINGLIMITLENGTH, NULL, N_("Manufacturer"),0, (void *)sizeof(newTurnManufacturer)},
#define I_TOLDESC (8)
- { PD_STRING, &newTurnLeftDesc, "desc1", 0, NULL, N_("Left Description") },
- { PD_STRING, &newTurnLeftPartno, "partno1", PDO_DLGHORZ, NULL, N_(" #") },
+ { PD_STRING, &newTurnLeftDesc, "desc1", PDO_STRINGLIMITLENGTH, NULL, N_("Left Description"), 0, (void *)sizeof(newTurnLeftDesc) },
+ { PD_STRING, &newTurnLeftPartno, "partno1", PDO_DLGHORZ | PDO_STRINGLIMITLENGTH, NULL, N_(" #"), 0, (void *)sizeof(newTurnLeftPartno) },
#define I_TORDESC (10)
- { PD_STRING, &newTurnRightDesc, "desc2", 0, NULL, N_("Right Description") },
- { PD_STRING, &newTurnRightPartno, "partno2", PDO_DLGHORZ, NULL, N_(" #") },
+ { PD_STRING, &newTurnRightDesc, "desc2", PDO_STRINGLIMITLENGTH, NULL, N_("Right Description"),0, (void *)sizeof(newTurnRightDesc) },
+ { PD_STRING, &newTurnRightPartno, "partno2", PDO_DLGHORZ | PDO_STRINGLIMITLENGTH, NULL, N_(" #"),0, (void *)sizeof(newTurnRightPartno) },
{ PD_FLOAT, &newTurnRoadbedWidth, "roadbedWidth", PDO_DIM, &r0_100, N_("Roadbed Width") },
{ PD_LONG, &newTurnRoadbedLineWidth, "roadbedLineWidth", PDO_DLGHORZ, &i0_100, N_("Line Width") },
{ PD_COLORLIST, &roadbedColor, "color", PDO_DLGHORZ|PDO_DLGBOXEND, NULL, N_("Color") },