From: subhransu mohanty Date: Mon, 24 Dec 2018 05:52:55 +0000 (+0900) Subject: lottie/vector: use snprintf instead of sprintf. X-Git-Tag: accepted/tizen/unified/20181227.062023^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F196157%2F1;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie/vector: use snprintf instead of sprintf. Change-Id: I4eb54b33f54e513c297224719b7b470a1eea0529 --- diff --git a/src/vector/vdebug.cpp b/src/vector/vdebug.cpp index faa74b1..bd74c9e 100644 --- a/src/vector/vdebug.cpp +++ b/src/vector/vdebug.cpp @@ -33,7 +33,7 @@ void format_timestamp(std::ostream& os, uint64_t timestamp) char buffer[32]; strftime(buffer, 32, "%Y-%m-%d %T.", gmtime); char microseconds[7]; - sprintf(microseconds, "%06llu", (long long unsigned int)timestamp % 1000000); + snprintf(microseconds, 7, "%06llu", (long long unsigned int)timestamp % 1000000); os << '[' << buffer << microseconds << ']'; }