fixed potential buffer overflow, detected by Coverity.
fixed potential buffer overflow, detected by Coverity.

aytekaman/appleseed,appleseedhq/appleseed,Biart95/appleseed,aiivashchenko/appleseed,appleseedhq/appleseed,glebmish/appleseed,gospodnetic/appleseed,docwhite/appleseed,appleseedhq/appleseed,pjessesco/appleseed,dictoon/appleseed,aiivashchenko/appleseed,Aakash1312/appleseed,dictoon/appleseed,est77/appleseed,docwhite/appleseed,aiivashchenko/appleseed,Aakash1312/appleseed,dictoon/appleseed,Biart95/appleseed,Vertexwahn/appleseed,aytekaman/appleseed,glebmish/appleseed,luisbarrancos/appleseed,Aakash1312/appleseed,luisbarrancos/appleseed,appleseedhq/appleseed,Vertexwahn/appleseed,dictoon/appleseed,aytekaman/appleseed,est77/appleseed,pjessesco/appleseed,Aakash1312/appleseed,gospodnetic/appleseed,Vertexwahn/appleseed,Vertexwahn/appleseed,Aakash1312/appleseed,Biart95/appleseed,luisbarrancos/appleseed,glebmish/appleseed,gospodnetic/appleseed,est77/appleseed,glebmish/appleseed,est77/appleseed,pjessesco/appleseed,Vertexwahn/appleseed,Biart95/appleseed,dictoon/appleseed,appleseedhq/appleseed,docwhite/appleseed,docwhite/appleseed,luisbarrancos/appleseed,docwhite/appleseed,Biart95/appleseed,glebmish/appleseed,luisbarrancos/appleseed,aytekaman/appleseed,est77/appleseed,aytekaman/appleseed,pjessesco/appleseed,gospodnetic/appleseed,aiivashchenko/appleseed,pjessesco/appleseed,gospodnetic/appleseed,aiivashchenko/appleseed