Re: [Nut-upsdev] [Patch] upssched broken in version 2.6.4 with command with two arguments

2012-07-04 Thread Arnaud Quette
2012/7/3 Oliver Schonefeld schonef...@ids-mannheim.de Hi, Hi Oliver, the last commit to upssched.c (Merge Coverity branch, r3555) broke upssched with commands that have a second argument. If a command with a second argument is used, enc in line 697 is not an empty buffer and

[Nut-upsdev] [Patch] upssched broken in version 2.6.4 with command with two arguments

2012-07-03 Thread Oliver Schonefeld
Hi, the last commit to upssched.c (Merge Coverity branch, r3555) broke upssched with commands that have a second argument. If a command with a second argument is used, enc in line 697 is not an empty buffer and snprintfcat() just appends some stuff, i.e. the following command CANCEL onbatt