From f205e918d9e1df28da3df69c6c58df6b6391916f Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 30 Sep 2013 12:07:57 +0100 Subject: [PATCH] sprintf -> snprintf in bucket code. --- simgear/bucket/newbucket.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/bucket/newbucket.cxx b/simgear/bucket/newbucket.cxx index 93095fd4..0a2e542c 100644 --- a/simgear/bucket/newbucket.cxx +++ b/simgear/bucket/newbucket.cxx @@ -212,7 +212,7 @@ std::string SGBucket::gen_base_path() const { main_lat *= -1; } - sprintf(raw_path, "%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