summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchuck <chuck@cvs.openbsd.org>1996-01-20 00:29:40 +0000
committerchuck <chuck@cvs.openbsd.org>1996-01-20 00:29:40 +0000
commit6dc750d8f697518875a5698b5c237b7520b8981a (patch)
tree1d2cdd89753e897f9b45c5538bd7dc7bfa5f22f6
parente46df41a7eb1723b800b859e31e5fd0de8946f1a (diff)
fix: adjust private keys to exclude the null in their size
(we don't store nulls in the db [any more])
-rw-r--r--usr.sbin/ypserv/common/ypdef.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/ypserv/common/ypdef.h b/usr.sbin/ypserv/common/ypdef.h
index 0fe79bbc93f..2305c5e1c9d 100644
--- a/usr.sbin/ypserv/common/ypdef.h
+++ b/usr.sbin/ypserv/common/ypdef.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ypdef.h,v 1.1 1995/11/01 16:56:17 deraadt Exp $
+ * $Id: ypdef.h,v 1.2 1996/01/20 00:29:39 chuck Exp $
*/
#ifndef _YPDEF_H_
@@ -38,19 +38,19 @@
#define YP_DB_PATH "/var/yp"
#define YP_LAST_KEY "YP_LAST_MODIFIED"
-#define YP_LAST_LEN sizeof(YP_LAST_KEY)
+#define YP_LAST_LEN (sizeof(YP_LAST_KEY)-1)
#define YP_INPUT_KEY "YP_INPUT_FILE"
-#define YP_INPUT_LEN sizeof(YP_INPUT_KEY)
+#define YP_INPUT_LEN (sizeof(YP_INPUT_KEY)-1)
#define YP_OUTPUT_KEY "YP_OUTPUT_FILE"
-#define YP_OUTPUT_LEN sizeof(YP_OUTPUT_KEY)
+#define YP_OUTPUT_LEN (sizeof(YP_OUTPUT_KEY)-1)
#define YP_MASTER_KEY "YP_MASTER_NAME"
-#define YP_MASTER_LEN sizeof(YP_MASTER_KEY)
+#define YP_MASTER_LEN (sizeof(YP_MASTER_KEY)-1)
#define YP_DOMAIN_KEY "YP_DOMAIN_NAME"
-#define YP_DOMAIN_LEN sizeof(YP_DOMAIN_KEY)
+#define YP_DOMAIN_LEN (sizeof(YP_DOMAIN_KEY)-1)
#define YP_INTERDOMAIN_KEY "YP_INTERDOMAIN"
-#define YP_INTERDOMAIN_LEN sizeof(YP_INTERDOMAIN_KEY)
+#define YP_INTERDOMAIN_LEN (sizeof(YP_INTERDOMAIN_KEY)-1)
#define YP_SECURE_KEY "YP_SECURE"
-#define YP_SECURE_LEN sizeof(YP_SECURE_KEY)
+#define YP_SECURE_LEN (sizeof(YP_SECURE_KEY)-1)
#define MAX_LAST_LEN 10
#define MAX_MASTER_LEN 255