Module Name: src Committed By: christos Date: Sat Apr 17 00:02:19 UTC 2021
Modified Files: src/usr.bin/shlock: shlock.c Log Message: appease gcc-9 To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/usr.bin/shlock/shlock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/shlock/shlock.c diff -u src/usr.bin/shlock/shlock.c:1.14 src/usr.bin/shlock/shlock.c:1.15 --- src/usr.bin/shlock/shlock.c:1.14 Fri Apr 16 18:41:12 2021 +++ src/usr.bin/shlock/shlock.c Fri Apr 16 20:02:19 2021 @@ -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 <sys/cdefs.h> #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 <sys/types.h> @@ -254,7 +254,7 @@ cklock(const char *file, struct stat *st 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;