[PATCH RESEND] parser: handle negative numbers properly

2013-04-01 Thread Robert Morell
Numbers beginning with '-' were falling into the DASH category. This also caused a confusing error message, since no terminating NUL character was added to configRBuf -- old garbage in the string would be printed. This fixes the terminating NUL for COMMA as well. Signed-off-by: Robert Morell --

Re: [PATCH RESEND] parser: handle negative numbers properly

2013-04-08 Thread Keith Packard
Robert Morell writes: > Numbers beginning with '-' were falling into the DASH category. Yeah, but you're breaking the parsing of sync intervals which use NUMBER DASH NUMBER. You can fix this in two ways -- use your current hack to glue the '-' to the following number and then go fix the sync int