aboutsummaryrefslogtreecommitdiffstats
path: root/comms/hylafax/files
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-09-19 05:58:04 +0800
committerade <ade@FreeBSD.org>2000-09-19 05:58:04 +0800
commit6d78f2b9e282249502cdf91c2cf1191978feb789 (patch)
treeb55adcf7c25a54a383506c8e5aeb7b4ebf4997b0 /comms/hylafax/files
parent88285405289a5aad0f34f8a898930403a5ffc7e1 (diff)
downloadfreebsd-ports-gnome-6d78f2b9e282249502cdf91c2cf1191978feb789.tar.gz
freebsd-ports-gnome-6d78f2b9e282249502cdf91c2cf1191978feb789.tar.zst
freebsd-ports-gnome-6d78f2b9e282249502cdf91c2cf1191978feb789.zip
Fix incorrect use of snprintf() that causes pid of process
trying to lock a serial device in /var/spool/lock to be incorrectly written into the lock file. PORTREVISION bumped. PR: 20141 Submitted by: Cyrus Rahman <cr@jcmax.com>
Diffstat (limited to 'comms/hylafax/files')
-rw-r--r--comms/hylafax/files/patch-ad9
1 files changed, 0 insertions, 9 deletions
diff --git a/comms/hylafax/files/patch-ad b/comms/hylafax/files/patch-ad
index aa3c2c17026a..4b89dab9bf90 100644
--- a/comms/hylafax/files/patch-ad
+++ b/comms/hylafax/files/patch-ad
@@ -156,15 +156,6 @@ diff -ruN faxd/UUCPLock.c++.orig faxd/UUCPLock.c++
}
}
uid_t UUCPLock::getUUCPUid() { setupIDs(); return UUCPuid; }
-@@ -307,7 +315,7 @@
- AsciiUUCPLock::setPID(pid_t pid)
- {
- // XXX should this be %d or %ld? depends on pid_t
-- sprintf((char*) data, "%*d\n", UUCP_PIDDIGITS, pid);
-+ snprintf((char*) data, sizeof(data), "%*d\n", UUCP_PIDDIGITS, pid);
- }
-
- bool
diff -ruN faxd/faxApp.c++.orig faxd/faxApp.c++
--- faxd/faxApp.c++.orig Sun Jun 13 00:41:05 1999
+++ faxd/faxApp.c++ Mon Jun 12 21:52:39 2000