summaryrefslogtreecommitdiff
path: root/app/bin/ctodesgn.c
diff options
context:
space:
mode:
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") },