From 5f835dcadf0897f305a54cbbf563fc620d98e423 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 17 Apr 2021 00:02:19 +0000 Subject: [PATCH] appease gcc-9 --- usr.bin/shlock/shlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/shlock/shlock.c b/usr.bin/shlock/shlock.c index b4911e08dbeb..06b3d59af141 100644 --- a/usr.bin/shlock/shlock.c +++ b/usr.bin/shlock/shlock.c @@ -1,4 +1,4 @@ -/* $NetBSD: shlock.c,v 1.14 2021/04/16 22:41:12 christos Exp $ */ +/* $NetBSD: shlock.c,v 1.15 2021/04/17 00:02:19 christos Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ #include #ifndef lint -__RCSID("$NetBSD: shlock.c,v 1.14 2021/04/16 22:41:12 christos Exp $"); +__RCSID("$NetBSD: shlock.c,v 1.15 2021/04/17 00:02:19 christos Exp $"); #endif #include @@ -254,7 +254,7 @@ cklock(const char *file, struct stat *st, int uucpstyle) static int mklock(const char *file, pid_t pid, int uucpstyle) { - char *tmp, tmp2[BUFSIZ]; + char *tmp, tmp2[BUFSIZ + 2]; int retcode = FALSE; struct stat stlock, sttmp, stlock2;