[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pbmserv-dev] BUG! in strutl.cpp



I'm amazed that we've not seen this before... in the 8(!) years that
pbmserv has been around...

apparently there was a bug in abbrev() strutl.cpp for a long long time.

the bug was...

    abbrev(string,value,len)   

e.g.

    abbrev(parameter,"-small",2)

if you passed in "-size=medium"... this matched!  which was not the
intent.

The intent was... minimum length of N, but any chars present had
to match.  not "just the first N".

I've patched, and tested the code.  ALL game modules being rebuilt.
(strutl.o is linked everywhere)

Richard "still shaking his head..."


-- 
 /  \__  | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
 \__/  \ | http://www.gamerz.net/rrognlie/    <rrognlie@gamerz.net>
 /  \__/ | No trees were killed in the sending of this message. 
 \__/    | However, a great many instructions were executed.