summaryrefslogtreecommitdiff
path: root/usr.bin/patch/util.c
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>1999-01-11 00:16:33 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>1999-01-11 00:16:33 +0000
commitc8e3edbfbf3bc1170a582c48d75eff651d722619 (patch)
tree22000a175583e7c592da5cf9cd55727925842fad /usr.bin/patch/util.c
parent21db4451ad801538e4a31b354800ba75fdb07717 (diff)
fix seg fault on sparc
Diffstat (limited to 'usr.bin/patch/util.c')
-rw-r--r--usr.bin/patch/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c
index 6efca26d882..f4f3bb8db11 100644
--- a/usr.bin/patch/util.c
+++ b/usr.bin/patch/util.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: util.c,v 1.5 1999/01/03 05:33:48 millert Exp $ */
+/* $OpenBSD: util.c,v 1.6 1999/01/11 00:16:32 marc Exp $ */
#ifndef lint
-static char rcsid[] = "$OpenBSD: util.c,v 1.5 1999/01/03 05:33:48 millert Exp $";
+static char rcsid[] = "$OpenBSD: util.c,v 1.6 1999/01/11 00:16:32 marc Exp $";
#endif /* not lint */
#include "EXTERN.h"
@@ -418,7 +418,7 @@ int assume_exists;
char *filebase = basename(name);
char *filedir = dirname(name);
-#define try(f, a1, a2, a3) (Snprintf(tmpbuf, sizeof tmpbuf, f, a1, a2), stat(tmpbuf, &filestat) == 0)
+#define try(f, a1, a2, a3) (Snprintf(tmpbuf, sizeof tmpbuf, f, a1, a2, a3), stat(tmpbuf, &filestat) == 0)
if ( try("%s/RCS/%s%s", filedir, filebase, RCSSUFFIX)
|| try("%s/RCS/%s%s", filedir, filebase, "")
|| try( "%s/%s%s", filedir, filebase, RCSSUFFIX)