X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Ftest-passwd.c;h=9b4f98e4dc6fb448f6a917e5c40340ff884a3338;hb=39809ded547bdbb08207d3e514950425215b4410;hp=2bd62199084b96fe3b00e2b28e6b686a2127d2bf;hpb=aa75c7476aeaa84cf3abc192b376a8b03c325213;p=xscreensaver 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;