[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH 3/3] write_filelock: do not trim nano version
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH 3/3] write_filelock: do not trim nano version |
Date: |
Sun, 01 Feb 2015 11:09:35 +0100 |
On Tue, Jan 27, 2015, at 17:46, Kamil Dudka wrote:
> --- a/trunk/nano/src/files.c
> +++ b/trunk/nano/src/files.c
> @@ -200,7 +200,7 @@ int write_lockfile(const char *lockfilename, const char
> *origfilename, bool modi
> lockdata[1] = 0x30;
> lockdata[24] = mypid % 256;
> lockdata[25] = mypid / 256;
> - snprintf(&lockdata[2], 10, "nano %s", VERSION);
> + snprintf(&lockdata[2], 11, "nano %s", VERSION);
> strncpy(&lockdata[28], mypwuid->pw_name, 16);
> strncpy(&lockdata[68], myhostname, 31);
> strncpy(&lockdata[108], origfilename, 768);
All three patches applied. Thanks.
Benno
--
http://www.fastmail.com - Send your email first class
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Nano-devel] [PATCH 3/3] write_filelock: do not trim nano version,
Benno Schulenberg <=