settings: limit string size in gatt_db_load()

It is necessary to prevent buffer overflow by limiting
the maximum string length.

Found with the SVACE static analysis tool.
1 file changed