From 46409d50e5632b28b88cfa4991fffef9adaa490d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 15 Jun 2016 15:47:01 -0500 Subject: Add readlink0() and readlinkat0() which null terminate the data. --- toys/other/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/stat.c') diff --git a/toys/other/stat.c b/toys/other/stat.c index 9f77a600..7a6b38d7 100644 --- a/toys/other/stat.c +++ b/toys/other/stat.c @@ -110,7 +110,7 @@ static void print_stat(char type) } else if (type == 'N') { xprintf("`%s'", TT.file); if (S_ISLNK(stat->st_mode)) - if (0 `%s'", toybuf); } else if (type == 'o') out('u', stat->st_blksize); else if (type == 's') out('u', stat->st_size); -- cgit v1.2.3