X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Ftest-passwd.c;fp=driver%2Ftest-passwd.c;h=9b4f98e4dc6fb448f6a917e5c40340ff884a3338;hp=2bd62199084b96fe3b00e2b28e6b686a2127d2bf;hb=39809ded547bdbb08207d3e514950425215b4410;hpb=4361b69d3178d7fc98d0388f9a223af6c2651aba diff --git a/driver/test-passwd.c b/driver/test-passwd.c index 2bd62199..9b4f98e4 100644 --- a/driver/test-passwd.c +++ b/driver/test-passwd.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1998-2016 Jamie Zawinski +/* xscreensaver, Copyright (c) 1998-2017 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -168,7 +168,7 @@ main (int argc, char **argv) progname = argv[0]; { char *s = strrchr(progname, '/'); - if (*s) strcpy (progname, s+1); + if (*s) progname = s+1; } if (argc != 2) goto USAGE;