diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-08-17 23:39:02 (EDT) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2010-08-17 23:39:02 (EDT) |
commit | 0a4946b3e913a2affe5fd342aa88e2533d06356e (patch) | |
tree | a53f2e977e6d39ac8356a9664fa46bec26c31c85 /libbb/xreadlink.c | |
parent | 0eb2cb22be9a69e9562fea935617864cc0e5f217 (diff) |
Remove trailing whitespace. Sorry if this breaks your patches.
git-svn-id: http://opkg.googlecode.com/svn/trunk@552 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libbb/xreadlink.c')
-rw-r--r-- | libbb/xreadlink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c index 5b0504c..7d77a3b 100644 --- a/libbb/xreadlink.c +++ b/libbb/xreadlink.c @@ -14,10 +14,10 @@ #include "libbb.h" extern char *xreadlink(const char *path) -{ +{ static const int GROWBY = 80; /* how large we will grow strings by */ - char *buf = NULL; + char *buf = NULL; int bufsize = 0, readsize = 0; do { @@ -27,11 +27,11 @@ extern char *xreadlink(const char *path) perror_msg("%s", path); return NULL; } - } + } while (bufsize < readsize + 1); buf[readsize] = '\0'; return buf; -} +} |