From 97610ff36cbd96be074affe1bbf11c2b3053120e Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Thu, 6 Apr 2006 05:28:18 +0000 Subject: Fix a bug whereby a written buffer (^X^W) would not have the correct trailing buffer number appended (e.g. "file<2>") in case an existing buffer shared its basename(). --- usr.bin/mg/def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/mg/def.h') diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index cc5d93e7a32..a9549d5e195 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.84 2006/04/03 02:43:22 kjell Exp $ */ +/* $OpenBSD: def.h,v 1.85 2006/04/06 05:28:17 kjell Exp $ */ /* This file is in the public domain. */ @@ -386,6 +386,7 @@ int addlinef(struct buffer *, char *, ...); int anycb(int); int bclear(struct buffer *); int showbuffer(struct buffer *, struct mgwin *, int); +int baugname(char *, const char *, size_t); struct mgwin *popbuf(struct buffer *); int bufferinsert(int, int); int usebuffer(int, int); -- cgit v1.2.3