Commit 07108014 authored by Jan Möbius's avatar Jan Möbius

cppcheck fix to limit field width

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15038 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f3f1811f
......@@ -283,7 +283,7 @@ OBJNode::read(const std::string& _filename)
// vertex
else if (strncmp(s, "v ", 2) == 0)
{
if (sscanf(s, "v %f %f %f", &x, &y, &z))
if (sscanf(s, "v %100f %100f %100f", &x, &y, &z))
{
vertices_.push_back(Vec3f(x,y,z));
}
......@@ -293,7 +293,7 @@ OBJNode::read(const std::string& _filename)
// texture coord
else if (strncmp(s, "vt ", 3) == 0)
{
if (sscanf(s, "vt %f %f", &u, &v))
if (sscanf(s, "vt %100f %100f", &u, &v))
texCoords_.push_back(Vec2f(u, v));
}
......
......@@ -52,8 +52,8 @@
//== INCLUDES =================================================================
#include "SceneGraph.hh"
#include "../GL/ColorTranslator.hh"
#include <ACG/Scenegraph/SceneGraph.hh>
#include <ACG/GL/ColorTranslator.hh>
//== NAMESPACES ==============================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment