summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Yahoo/src/libyahoo2/libyahoo2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Yahoo/src/libyahoo2/libyahoo2.cpp b/protocols/Yahoo/src/libyahoo2/libyahoo2.cpp
index 1ff4870a9a..58e21a74a7 100644
--- a/protocols/Yahoo/src/libyahoo2/libyahoo2.cpp
+++ b/protocols/Yahoo/src/libyahoo2/libyahoo2.cpp
@@ -2780,7 +2780,7 @@ static void yahoo_process_mail(struct yahoo_input_data *yid, struct yahoo_packet
if (who) {
snprintf(from, sizeof(from), "\"%s\" <%s>", who, email);
} else {
- snprintf(from, sizeof(from), "%s", email);
+ strncpy_s(from, email, _TRUNCATE);
}
YAHOO_CALLBACK(ext_yahoo_mail_notify)(yd->client_id, from, subj, count);