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> |
||
|---|---|---|
| .. | ||
| CmdAB.c | ||
| CmdAuto.c | ||
| CmdCD.c | ||
| CmdE.c | ||
| CmdFI.c | ||
| CmdLQ.c | ||
| CmdRS.c | ||
| CmdSubrs.c | ||
| CmdTZ.c | ||
| CmdWizard.c | ||
| Makefile | ||
| commands.h | ||