OK, I'm not a lawyer, but the following snippet
of code from visitors' source makes it sound
like it is re-licensing BSD code.  The part that
reads: "Originally under the BSD license."

Is this right?  Or am I misreading something? I
thought only the copyright owner may change the
terms of the license (again, I am not a lawyer).
And I'm not trying to start any sort of trouble
here.  I am actually interested in using this
software.


Reference from: http://www.hping.org/visitors/source.html#file7
Module: visitors.c 7/7
About 10 pages (depending on your window size)
from anchor.



/* Note: the following function strlcat and strlcpy are (possibly) modified
 * version of OpenBSD's functions. Original copyright notice:
 * Copyright (c) 1998 Todd C. Miller <[EMAIL PROTECTED]>
 * Originally under the BSD license. */
int vi_strlcpy(char *dst, char *src, int siz)
{
        char *d = dst;
        const char *s = src;
        int n = siz;

        /* Copy as many bytes as will fit */
        if (n != 0 && --n != 0) {
                do {
                        if ((*d++ = *s++) == 0)
                                break;
                } while (--n != 0);
        }
        /* Not enough room in dst, add NUL and traverse rest of src */
        if (n == 0) {
                if (siz != 0)
                        *d = '\0';              /* NUL-terminate dst */
                while (*s++)
                        ;
        }
        return(s - src - 1);    /* count does not include NUL */
}

int vi_strlcat(char *dst, const char *src, int siz)
{
        char *d = dst;
        const char *s = src;
        size_t n = siz;
        size_t dlen;

        /* Find the end of dst and adjust bytes left but don't go past end */
        while (n-- != 0 && *d != '\0')
                d++;
        dlen = d - dst;
        n = siz - dlen;

        if (n == 0)
                return(dlen + strlen(s));
        while (*s != '\0') {
                if (n != 1) {
                        *d++ = *s;
                        n--;
                }
                s++;
        }
        *d = '\0';

        return(dlen + (s - src));       /* count does not include NUL */
}











--- Mathieu Sauve-Frankel <[EMAIL PROTECTED]> wrote:

> > Cool toy but I had segmentation faults on 3.9 i386. After correcting the
> booboo all is fine.
> 
> here's a revised port. without the graphviz dependency and the old patch.
> 
> -- 
> Mathieu Sauve-Frankel
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to