]> git.mxchange.org Git - simgear.git/commitdiff
sprintf -> snprintf in bucket code.
authorJames Turner <zakalawe@mac.com>
Mon, 30 Sep 2013 11:07:57 +0000 (12:07 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 30 Sep 2013 11:07:57 +0000 (12:07 +0100)
simgear/bucket/newbucket.cxx

index 93095fd45b22cce3d579ef7623ff3ab7d3aeb6cd..0a2e542c3f706290728ee877a7e2a431a3faba31 100644 (file)
@@ -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);