Displaying 1 result from an estimated 1 matches for "75a0735".
Did you mean:
754735
2014 Apr 15
1
[PATCH] Null terminate before printing the link name.
...ge I'm seeing consistently from readlink
/dev/disk/by-uuid/..... during boot.
Signed-off-by: Rafi Rubin <rafi at seas.upenn.edu>
- ---
usr/utils/readlink.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/usr/utils/readlink.c b/usr/utils/readlink.c
index 5ea4e41..75a0735 100644
- --- a/usr/utils/readlink.c
+++ b/usr/utils/readlink.c
@@ -15,6 +15,7 @@ int main(int argc, char *argv[])
{
char *name, *link_name = NULL;
size_t max_siz = 128;
+ size_t actual_siz = 0;
progname = *argv++;
@@ -28,8 +29,9 @@ int main(int argc, char *argv[])...