提交 d5484651 authored 作者: Travis Cross's avatar Travis Cross

squelch a Windows VS warning about null termination on the ZID

According Jeff Lenk, Windows Visual Studio doesn't understand that
people use the char type for non-null-terminated byte arrays, so it
throws a warning about this that causes the build to fail on Windows.

As the initial value for the ZID doesn't really matter here one iota,
just null-terminate it on Windows.
上级 fdc9e7f8
...@@ -73,7 +73,11 @@ typedef srtp_hdr_t rtp_hdr_t; ...@@ -73,7 +73,11 @@ typedef srtp_hdr_t rtp_hdr_t;
#ifdef ENABLE_ZRTP #ifdef ENABLE_ZRTP
#include "zrtp.h" #include "zrtp.h"
static zrtp_global_t *zrtp_global; static zrtp_global_t *zrtp_global;
#ifndef WIN32
static zrtp_zid_t zid = { "FreeSWITCH01" }; static zrtp_zid_t zid = { "FreeSWITCH01" };
#else
static zrtp_zid_t zid = { "FreeSWITCH0\0" };
#endif
static int zrtp_on = 0; static int zrtp_on = 0;
#define ZRTP_MITM_TRIES 100 #define ZRTP_MITM_TRIES 100
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论