Merge pull request #2972 from MartinNowak/fix11750

incorrect strlen usage