sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 9ab1478f1eb6a9a355d394af3c0cfa69850245fe
parent b95c8ed79e5d5322dd3c5c386c3acd62105ac116
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 10 Jan 2017 11:28:58 +0100

ed: fix commit 2ccc1e8

The patch was wrong because the prototype of
strcpy is different to the prototype of strlcpy

Diffstat:
Med.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ed.c b/ed.c @@ -611,8 +611,7 @@ dowrite(const char *fname, int trunc) curln = line2; if (fclose(fp)) error("input/output error"); - if (strcpy(savfname, fname, sizeof(savfname)) >= sizeof(savfname)) - error("file name too long"); + strcpy(savfname, fname); modflag = 0; curln = line; }