On Dec 15, 2009, at 8:40 PM, Tim Rice wrote:
On Tue, 15 Dec 2009, Arjen de Korte wrote:Citeren Kjell Claesson <[email protected]>:Although gcc can handle it, it's not portable C code. What size should the answer array be?It depends on the ups.If the size of the answer isn't known at compile time, you should either allocate it dynamically with malloc() or calloc() (at runtime) or hardcode thesize so big that any reply should fit in it.This may be the least intrusive way to fix it.
Tim,Looks good to me, but for some reason, your patches seem to be missing a leading space (which makes them not apply automatically. I am attaching a patch that is functionally equivalent to yours, and if nobody objects, that's what I'll commit.
- Charles
bcmxcp-buffer.patch
Description: Binary data
_______________________________________________ Nut-upsdev mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
