Fixes #3123 - Correct name length control in datalist_get and set_config
Merge pull request #495 from Srokap/ticket_3123

Fixes #3123 - Correct name length control in datalist_get and set_config