1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-24 11:55:43 +00:00

fix boundary error in portmon code

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@810 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2006-12-10 05:57:37 +00:00
parent 91ca82eb3b
commit 09fda8a54f

View File

@ -365,7 +365,7 @@ int peek_tcp_port_monitor(
/* if the connection index is out of range, we simply return with no error
* having first cleared the client-supplied buffer. */
if ( (item!=COUNT) && ((unsigned)connection_index > g_hash_table_size (p_monitor->hash) - 1) )
if ( (item!=COUNT) && (connection_index > (int)g_hash_table_size (p_monitor->hash) - 1) )
return(0);
switch (item) {