Commit 6537ec2a authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed bug: possible string overflow returning value from function nmxp_chan_lookupName()


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@1199 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent a00a22b2
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp_chan.c,v 1.41 2008-07-21 22:41:24 mtheo Exp $
* $Id: nmxp_chan.c,v 1.42 2009-01-29 13:10:49 mtheo Exp $
*
*/
......@@ -232,7 +232,7 @@ int nmxp_chan_lookupKeyIndex(int32_t key, NMXP_CHAN_LIST_NET *channelList)
char *nmxp_chan_lookupName(int32_t key, NMXP_CHAN_LIST_NET *channelList)
{
int i_chan = 0;
static char ret[12];
static char ret[15];
ret[0] = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment