Author: sayer
Date: 2010-02-25 15:41:12 +0100 (Thu, 25 Feb 2010)
New Revision: 1635
Modified:
trunk/core/AmZRTP.cpp
Log:
don't write too long cache path
Modified: trunk/core/AmZRTP.cpp
===================================================================
--- trunk/core/AmZRTP.cpp 2010-02-25 14:26:42 UTC (rev 1634)
+++ trunk/core/AmZRTP.cpp 2010-02-25 14:41:12 UTC (rev 1635)
@@ -89,7 +89,7 @@
}
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());
}
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev