flex icon indicating copy to clipboard operation
flex copied to clipboard

skeletons.c line 167: *cp++ --> cp++

Open thobo70 opened this issue 4 months ago • 1 comments

in file skeletons.c line 167: for (cp = line + 10; isspace(*cp) || *cp == '['; *cp++) *cp++ should be cp++ otherwise the character is counted up, not the pointer

thobo70 avatar Aug 21 '25 19:08 thobo70

Agree we should fix this. It hasn't caused a problem because post-increment had higher precedence than dereference. So that clause does increment the pointer, it's just bad.

Mightyjo avatar Aug 21 '25 19:08 Mightyjo