test_voicemail_api: fix warning found by gcc-4.8
authorDavid M. Lee <dlee@digium.com>
Thu, 11 Jul 2013 04:34:49 +0000 (04:34 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 11 Jul 2013 04:34:49 +0000 (04:34 +0000)
commitd3939686cdd2f198c5779621d18f0a79a7739976
treeb1d4fc4f00fd5af38ed6ee2f4cedf2b8cbb256eb
parent31a58b2604c5f551a817f4153a32cc56e5c6da49
test_voicemail_api: fix warning found by gcc-4.8

The voicemail_api test had code like strncmp(a, b, sizeof(a)), but a was a
char pointer, instead of a literal or char array. This meant that sizeof was
the size of the pointer, not the length of the string.

Since the string is in a stringfield and should be null terminated, I just
changed it to a plain strcmp.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
tests/test_voicemail_api.c