Commit 211a68b4 authored by Richard Levitte's avatar Richard Levitte
Browse files

Fix faulty check in the VMS version of opt_progname

parent 579415de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ char *opt_progname(const char *argv0)
    q = strrchr(p, '.');
    strncpy(prog, p, sizeof prog - 1);
    prog[sizeof prog - 1] = '\0';
    if (q == NULL || q - p >= sizeof prog)
    if (q != NULL && q - p < sizeof prog)
        prog[q - p] = '\0';
    return prog;
}