Squash some more warnings

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6595 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2016-04-06 23:30:32 +00:00
parent dd6f48ccca
commit 720412ff5a
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ namespace
{
auto len = std::min (size_t (4), strlen (id));
memcpy (id_.data (), id, len);
memset (id_.data () + len, ' ', 4u - len);
if (len < 4u)
{
memset (id_.data () + len, ' ', 4u - len);
}
}
else
{