From b2f5fed3bf01f1024cd1990ce3e1334d82da5a43 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 20 Oct 2016 12:34:38 +0200 Subject: [PATCH] Changed: Replace sscanf by fromString --HG-- branch : develop --- code/nel/tools/3d/zone_check_bind/zone_check_bind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/tools/3d/zone_check_bind/zone_check_bind.cpp b/code/nel/tools/3d/zone_check_bind/zone_check_bind.cpp index c6dfa56c0..f7fa710aa 100644 --- a/code/nel/tools/3d/zone_check_bind/zone_check_bind.cpp +++ b/code/nel/tools/3d/zone_check_bind/zone_check_bind.cpp @@ -419,13 +419,13 @@ int main(int argc, char* argv[]) float weldThreshold, middleEdgeWeldThreshold; - if (::sscanf(argv[2], "%f", &weldThreshold) != 1) + if (!fromString(argv[2], weldThreshold)) { nlinfo("invalid weldThreshold"); return -1; } - if (::sscanf(argv[3], "%f", &middleEdgeWeldThreshold) != 1) + if (!fromString(argv[3], middleEdgeWeldThreshold)) { nlinfo("invalid middleEdgeWeldThreshold"); return -1;