patches from sourceforge

David Relson relson at osagesoftware.com
Sat Dec 14 01:03:05 CET 2002


At 10:16 AM 12/13/02, Matthias Andree wrote:

> > +        case 'O':
> > +            strlcpy(outfname, optarg, PATH_LEN);
> > +
>
>and this does not barf on overruns.


Personally, I like using sizeof().  Using that it's a whole lot easier to 
change the array declaration because sizeof() will automatically 
adjust.  I'd code it as:

         strlcpy(outfname, optarg, sizeof(outfname))






More information about the bogofilter-dev mailing list