diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-13 02:04:39 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-13 02:04:39 +0000 |
commit | e45b95fa02e62190b85750ffdba872a3f4d8f027 (patch) | |
tree | 15bce23f3eb1842f2cb051b2ffaa034ad76cb449 /epan/dissectors/packet-ftp.c | |
parent | bd9b32ae3e9d22d007ae513e133efbebef4d13e0 (diff) |
Try to appease Visual Studio Code Analysis to avoid a false warning (as far as I can tell), namely: warning C6054: String 'forbidden' might not be zero-terminated
svn path=/trunk/; revision=54009
Diffstat (limited to 'epan/dissectors/packet-ftp.c')
-rw-r--r-- | epan/dissectors/packet-ftp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ftp.c b/epan/dissectors/packet-ftp.c index 0c9c66ecf4..16c96b2730 100644 --- a/epan/dissectors/packet-ftp.c +++ b/epan/dissectors/packet-ftp.c @@ -279,13 +279,12 @@ static gboolean isvalid_rfc2428_delimiter(const guchar c) { /* RFC2428 sect. 2 states rules for a valid delimiter */ - static const gchar forbidden[] = {"0123456789abcdef.:"}; + const gchar *forbidden = "0123456789abcdef.:"; if (c < 33 || c > 126) return FALSE; - else if (strchr(forbidden, tolower(c))) + if (strchr(forbidden, tolower(c))) return FALSE; - else - return TRUE; + return TRUE; } |