summaryrefslogtreecommitdiff
path: root/plugins/YAPP/src/options.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-24 14:52:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-24 14:52:01 +0000
commit3e02ce14f6cce63910b266655a9c33bd3a70f17a (patch)
tree8fcf4371ea0d10693e7697f305d51988484faf69 /plugins/YAPP/src/options.cpp
parent107471fac771abe5774d10769e36c0903a908685 (diff)
replace sprintf to mir_snprintf (part 4)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP/src/options.cpp')
-rw-r--r--plugins/YAPP/src/options.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/YAPP/src/options.cpp b/plugins/YAPP/src/options.cpp
index 7158404a00..08e3dfce8c 100644
--- a/plugins/YAPP/src/options.cpp
+++ b/plugins/YAPP/src/options.cpp
@@ -37,7 +37,7 @@ void LoadOptions()
char buff[128];
for (int i = 0; i < 10; i++) {
- sprintf(buff, "DisableStatus%d", i - 1); // -1 because i forgot offline status earlier!
+ mir_snprintf(buff, SIZEOF(buff), "DisableStatus%d", i - 1); // -1 because i forgot offline status earlier!
options.disable_status[i] = (db_get_b(0, MODULE, buff, 0) == 1);
}
@@ -71,7 +71,7 @@ void SaveOptions()
char buff[128];
for (int i = 0; i < 9; i++) {
- sprintf(buff, "DisableStatus%d", i - 1);
+ mir_snprintf(buff, SIZEOF(buff), "DisableStatus%d", i - 1);
db_set_b(0, MODULE, buff, options.disable_status[i] ? 1 : 0);
}
db_set_b(0, MODULE, "DisableFullScreen", (options.disable_full_screen ? 1 : 0));