summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-02-06 16:30:52 +0800
committerPeng Wu <alexepico@gmail.com>2012-02-06 16:30:52 +0800
commit34909d3887a7ac3f423f00ec0913a2da6447e374 (patch)
treef2481a4e62ffc4c40a847027aed57c54641c88e3 /src
parenta0095d85a122f7b4972471c9d7b0da414044a375 (diff)
downloadlibpinyin-34909d3887a7ac3f423f00ec0913a2da6447e374.tar.gz
libpinyin-34909d3887a7ac3f423f00ec0913a2da6447e374.tar.xz
libpinyin-34909d3887a7ac3f423f00ec0913a2da6447e374.zip
fixes format-security warnings
Diffstat (limited to 'src')
-rw-r--r--src/storage/tag_utility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/tag_utility.cpp b/src/storage/tag_utility.cpp
index 2f4626a..e38810d 100644
--- a/src/storage/tag_utility.cpp
+++ b/src/storage/tag_utility.cpp
@@ -143,7 +143,7 @@ static gchar ** split_line(const gchar * line){
gchar * tmp = g_strndup( begin, cur - begin);
/* TODO: switch to own strdup_escape implementation
for \"->" transforming. */
- token = g_strdup_printf(tmp);
+ token = g_strdup_printf("%s", tmp);
g_free(tmp);
} else {
/* handles other tokens. */