[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] adding the ability to paste at an input prompt
From: |
David Ramsey |
Subject: |
Re: [Nano-devel] adding the ability to paste at an input prompt |
Date: |
Mon, 24 Jul 2017 14:50:39 -0500 |
Two minor nits: strlen() returns size_t, not int; and the assignment of
fusion doesn't use nano's malloc() wrappers as the rest of the code
does. Couldn't these lines in the last patch
+ int pastelen = strlen(cutbuffer->data);
+ char *fusion = malloc((strlen(answer) + pastelen + 1) * sizeof(char));
be changed to these?
+ size_t pastelen = strlen(cutbuffer->data);
+ char *fusion = charalloc(strlen(answer) + pastelen + 1);
- Re: [Nano-devel] adding the ability to paste at an input prompt,
David Ramsey <=