Use {'0', ...} type initializer for fixed length character arrays.

svn path=/trunk/; revision=35735
This commit is contained in:
Bill Meier 2011-01-31 21:45:16 +00:00
parent fa8fb80f53
commit 51bae2f9f8
2 changed files with 3 additions and 4 deletions

View File

@ -92,9 +92,8 @@ static dissector_handle_t data_handle;
static packet_info *g_pinfo;
static proto_tree *g_tree;
static const char dtmf_digits[16] = "?1234567890?????";
static const char bcd_digits[16] = "0123456789??????";
static const char dtmf_digits[16] = {'?','1','2','3','4','5','6','7','8','9','0','?','?','?','?','?'};
static const char bcd_digits[16] = {'0','1','2','3','4','5','6','7','8','9','?','?','?','?','?','?'};
/* FUNCTIONS */

View File

@ -987,7 +987,7 @@ follow_show(follow_info_t *follow_info,
{
gchar initbuf[256];
guint32 current_pos;
static const gchar hexchars[16] = "0123456789abcdef";
static const gchar hexchars[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
switch (follow_info->show_type) {