summaryrefslogtreecommitdiff
path: root/app/bin/cblock.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 18:22:19 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 18:22:19 +0200
commit498011c44291d7d619143ce5ff3e38369d759c22 (patch)
tree5b4d1fdd686089c0c1778a462e27fa694b8f49be /app/bin/cblock.c
parent67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff)
parent9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (diff)
Update upstream source from tag 'upstream/5.1.1'
Update to upstream version '5.1.1' with Debian dir 878f8cb06af8c1037570ac8774f9261ff9b12fa4
Diffstat (limited to 'app/bin/cblock.c')
-rw-r--r--app/bin/cblock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/bin/cblock.c b/app/bin/cblock.c
index b1b14a8..c4f6795 100644
--- a/app/bin/cblock.c
+++ b/app/bin/cblock.c
@@ -102,8 +102,8 @@ static char blockScript[STR_LONG_SIZE];
static long blockElementCount;
static paramData_t blockPLs[] = {
-/*0*/ { PD_STRING, blockName, "name", PDO_NOPREF, (void*)200, N_("Name") },
-/*1*/ { PD_STRING, blockScript, "script", PDO_NOPREF, (void*)350, N_("Script") }
+/*0*/ { PD_STRING, blockName, "name", PDO_NOPREF | PDO_STRINGLIMITLENGTH, (void*)200, N_("Name"), 0, (void *)sizeof( blockName ) },
+/*1*/ { PD_STRING, blockScript, "script", PDO_NOPREF | PDO_STRINGLIMITLENGTH, (void*)350, N_("Script"), 0, (void *)sizeof( blockScript) }
};
static paramGroup_t blockPG = { "block", 0, blockPLs, sizeof blockPLs/sizeof blockPLs[0] };
static wWin_p blockW;
@@ -114,8 +114,8 @@ static char blockEditSegs[STR_LONG_SIZE];
static track_p blockEditTrack;
static paramData_t blockEditPLs[] = {
-/*0*/ { PD_STRING, blockEditName, "name", PDO_NOPREF, (void*)200, N_("Name") },
-/*1*/ { PD_STRING, blockEditScript, "script", PDO_NOPREF, (void*)350, N_("Script") },
+/*0*/ { PD_STRING, blockEditName, "name", PDO_NOPREF | PDO_STRINGLIMITLENGTH, (void*)200, N_("Name"), 0, (void *)sizeof(blockEditName) },
+/*1*/ { PD_STRING, blockEditScript, "script", PDO_NOPREF | PDO_STRINGLIMITLENGTH, (void*)350, N_("Script"), 0, (void *)sizeof(blockEditScript) },
/*2*/ { PD_STRING, blockEditSegs, "segments", PDO_NOPREF, (void*)350, N_("Segments"), BO_READONLY },
};
static paramGroup_t blockEditPG = { "block", 0, blockEditPLs, sizeof blockEditPLs/sizeof blockEditPLs[0] };