summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/common.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1996-09-24 04:19:25 +0000
committermillert <millert@openbsd.org>1996-09-24 04:19:25 +0000
commit7ecb9955a5f2f48912d6fd800425e110cb0501e4 (patch)
treee10a4b9766dabd0258b50f0aab3e0a23fe1db6a5 /usr.bin/patch/common.h
parentUse mkstemp(). Since temp files get re-used we use mkstemp() to make (diff)
downloadwireguard-openbsd-7ecb9955a5f2f48912d6fd800425e110cb0501e4.tar.xz
wireguard-openbsd-7ecb9955a5f2f48912d6fd800425e110cb0501e4.zip
sprintf -> snprintf except where guaranteed safe.
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r--usr.bin/patch/common.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h
index 96421b22d50..adfe4ac4e42 100644
--- a/usr.bin/patch/common.h
+++ b/usr.bin/patch/common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.h,v 1.4 1996/09/24 02:58:53 millert Exp $ */
+/* $OpenBSD: common.h,v 1.5 1996/09/24 04:19:25 millert Exp $ */
#define DEBUGGING
@@ -16,7 +16,7 @@
#define Close (void)close
#define Fclose (void)fclose
#define Fflush (void)fflush
-#define Sprintf (void)sprintf
+#define Snprintf (void)snprintf
#define Strcpy (void)strcpy
#define Strcat (void)strcat
@@ -82,8 +82,6 @@
#define strnNE(s1,s2,l) (strncmp(s1, s2, l))
#define strnEQ(s1,s2,l) (!strncmp(s1, s2, l))
-#define Mkstemp mkstemp
-
/* typedefs */
typedef char bool;
@@ -172,9 +170,9 @@ char *rindex();
int mkstemp();
#if 0 /* This can cause a prototype conflict. */
#ifdef CHARSPRINTF
-char *sprintf();
+char *snprintf();
#else
-int sprintf();
+int snprintf();
#endif
#endif