Find a small spring to slip over the bolt, screw the bolt in until the linkage moves, measure the distance between the spring & either the head of the bolt or the mounting surface & cut that amount off the bolt after you remove the bolt. I'ts a good idea to screw a nut onto the bolt before you cut it & file the end after you've cut it to tidy up the end of the thread.
What's the spring for? A plastic screw will bind in the thread, a metal screw won't so, a spring will prevent it moving due to engine vibration.