magic/commands
Sylvain Munaut e366cf6a4c commands: Fix parsing of plane properties in case of single string
The previous code would iterate over `proplen` chunks of strings
but would not initialize `proplen` for plane properties.

Technically for plane properties you don't need to "pre-count"
the string chunks but given how the code is currently written
it's easier to do the counting in all cases.

Also makes sure proprec is init to NULL so that if argument is
empty, property is set to NULL and not random value on the stack.

Fixes #520

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2026-05-25 12:49:52 +02:00
..
CmdAB.c Corrected another place where the property handling had not been 2026-02-19 11:40:46 -05:00
CmdAuto.c K&R commands/*.c: bulk function implementation conversion 2024-12-26 13:13:13 -05:00
CmdCD.c Corrected another place where the property handling had not been 2026-02-19 11:40:46 -05:00
CmdE.c Add ClientData parameter to indirect-call callbacks for WASM 2026-05-11 14:20:47 -04:00
CmdFI.c More updates. . . Got it to the point were gpio_ovtv2 is LVS 2026-01-17 20:49:52 -05:00
CmdLQ.c commands: Fix parsing of plane properties in case of single string 2026-05-25 12:49:52 +02:00
CmdRS.c Found another couple of places where the environment variable 2026-05-13 09:46:21 -04:00
CmdSubrs.c Annotate ClientData callbacks: /*ARGSUSED*/ + /* UNUSED */ markers 2026-05-11 14:20:47 -04:00
CmdTZ.c Add ClientData parameter to indirect-call callbacks for WASM 2026-05-11 14:20:47 -04:00
CmdWizard.c First cut of pulling the TT_SIDE bit out of the tile database 2026-01-09 12:05:03 -05:00
Makefile readline/Makefile: move up before with no scheme 2025-07-29 10:50:31 -04:00
commands.h Extended the "property" command and modified the way that properties 2026-02-18 10:48:47 -05:00