Fix bug #452 in apcupsd

the code was using sizeof on an array function parameter...