Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/shlock appease gcc-9
details: https://anonhg.NetBSD.org/src/rev/f96275d19a29
branches: trunk
changeset: 1020583:f96275d19a29
user: christos <christos%NetBSD.org@localhost>
date: Sat Apr 17 00:02:19 2021 +0000
description:
appease gcc-9
diffstat:
usr.bin/shlock/shlock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r aaf6aa0e9eef -r f96275d19a29 usr.bin/shlock/shlock.c
--- a/usr.bin/shlock/shlock.c Fri Apr 16 22:41:12 2021 +0000
+++ b/usr.bin/shlock/shlock.c Sat Apr 17 00:02:19 2021 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index