=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/which/which.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- src/usr.bin/which/which.c 2013/04/10 02:57:20 1.18 +++ src/usr.bin/which/which.c 2014/05/20 01:25:23 1.19 @@ -1,4 +1,4 @@ -/* $OpenBSD: which.c,v 1.18 2013/04/10 02:57:20 guenther Exp $ */ +/* $OpenBSD: which.c,v 1.19 2014/05/20 01:25:23 guenther Exp $ */ /* * Copyright (c) 1997 Todd C. Miller @@ -125,7 +125,7 @@ p[--plen] = '\0'; /* strip trailing '/' */ if (plen + 1 + proglen >= sizeof(filename)) { - warnx("%s/%s: %s", p, prog, strerror(ENAMETOOLONG)); + warnc(ENAMETOOLONG, "%s/%s", p, prog); free(path); return (0); }