浏览代码

another fix for 'error: format not a string literal and no format arguments [-Werror=format-security]'

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57316 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 11 年之前
父节点
当前提交
b4b45ee004
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      display/d.linegraph/main.c

+ 1 - 1
display/d.linegraph/main.c

@@ -562,7 +562,7 @@ int main(int argc, char **argv)
     D_text(xlabel);
 
     /* top label */
-    sprintf(xlabel, title[2]->answer);
+    sprintf(xlabel, "%s", title[2]->answer);
     text_height = (b - t) * TEXT_HEIGHT;
     text_width = (r - l) * TEXT_WIDTH * 2.0;
     D_text_size(text_width, text_height);