From e440aba0d27939d6a715cd65746ab534fce34421 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 13 Feb 2014 15:31:58 +0000 Subject: [PATCH] Some Linux platforms need for snprintf. --- simgear/bucket/newbucket.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/bucket/newbucket.cxx b/simgear/bucket/newbucket.cxx index 1e59205a..e300def1 100644 --- a/simgear/bucket/newbucket.cxx +++ b/simgear/bucket/newbucket.cxx @@ -28,6 +28,7 @@ #endif #include +#include // some platforms need this for ::snprintf #include #include @@ -214,7 +215,7 @@ std::string SGBucket::gen_base_path() const { main_lat *= -1; } - snprintf(raw_path, 256, "%c%03d%c%02d/%c%03d%c%02d", + ::snprintf(raw_path, 256, "%c%03d%c%02d/%c%03d%c%02d", hem, top_lon, pole, top_lat, hem, main_lon, pole, main_lat); -- 2.39.5