From a49a07e6492137538ab3f65b51254cf563dafd34 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 25 Feb 2010 14:41:12 +0000 Subject: [PATCH] don't write too long cache path git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1635 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmZRTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/AmZRTP.cpp b/core/AmZRTP.cpp index d346ff67..4449808a 100644 --- a/core/AmZRTP.cpp +++ b/core/AmZRTP.cpp @@ -89,7 +89,7 @@ void AmZRTP::freeSession(zrtp_conn_ctx_t* zrtp_session) { } void zrtp_get_cache_path(char *path, uint32_t length) { - sprintf(path, "%s", AmZRTP::cache_path.c_str()); + snprintf(path, length, "%s", AmZRTP::cache_path.c_str()); }