diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-23 16:00:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-23 16:00:44 +0000 |
commit | d1137097b08eb0352b60a59b5ab38cca537e1250 (patch) | |
tree | ee8359945de87090cb235414e5785cfab9d76538 /bin | |
parent | 968020292b7da5e5d381cbb3842d25b8321eb7d9 (diff) |
strchr() should be strrchr(); zyrnix
Diffstat (limited to 'bin')
-rw-r--r-- | bin/md5/md5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c index 0e68483ae3b..5ad8a6b2dd2 100644 --- a/bin/md5/md5.c +++ b/bin/md5/md5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md5.c,v 1.19 2003/03/23 00:31:23 millert Exp $ */ +/* $OpenBSD: md5.c,v 1.20 2003/04/23 16:00:43 millert Exp $ */ /* * Copyright (c) 2001,2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -267,7 +267,7 @@ digest_filelist(char *file) continue; filename = p + 2; - p = strchr(filename, ')'); + p = strrchr(filename, ')'); if (p == NULL || strncmp(p + 1, " = ", (size_t)3) != 0) continue; *p = '\0'; |