sbase

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

commit 5b7df455f8be5efdb16c44338ad411259367b274
parent e537186ba474a878cbfc26b61b0c78f7cbca96c0
Author: FRIGN <dev@frign.de>
Date:   Thu, 10 Mar 2016 07:02:38 +0100

Change paste(1) a bit to prepare libutf changes

Diffstat:
Mpaste.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/paste.c b/paste.c @@ -87,7 +87,7 @@ main(int argc, char *argv[]) { struct fdescr *dsc; Rune *delim; - size_t i, len; + size_t delimlen, i, len; int seq = 0, ret = 0; char *adelim = "\t"; @@ -106,10 +106,10 @@ main(int argc, char *argv[]) usage(); /* populate delimiters */ + /* TODO: fix libutf to accept sizes */ unescape(adelim); delim = ereallocarray(NULL, utflen(adelim) + 1, sizeof(*delim)); - len = utftorunestr(adelim, delim); - if (!len) + if (!(delimlen = utftorunestr(adelim, delim))) usage(); /* populate file list */