diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2006-07-09 20:33:52 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2006-07-09 20:33:52 +0000 |
commit | b2cff294de799314eec0b6d4ad15d5f7468c52a9 (patch) | |
tree | 1a6e31c0146b684d6a72580d1d2bf834699d591d /src | |
parent | Make sure the first realpath() in get_tmp_dir() failing do (diff) | |
download | sandbox-b2cff294de799314eec0b6d4ad15d5f7468c52a9.tar.gz sandbox-b2cff294de799314eec0b6d4ad15d5f7468c52a9.tar.bz2 sandbox-b2cff294de799314eec0b6d4ad15d5f7468c52a9.zip |
Remove file_length(), and rather use rc_get_size().
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sandbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sandbox.c b/src/sandbox.c index f4b9478..0ec599c 100644 --- a/src/sandbox.c +++ b/src/sandbox.c @@ -114,7 +114,7 @@ int print_sandbox_log(char *sandbox_log) int sandbox_log_file = -1; char *beep_count_env = NULL; int i, color, beep_count = 0; - long len = 0; + off_t len = 0; char *buffer = NULL; if (!rc_is_file(sandbox_log, FALSE)) { @@ -128,7 +128,7 @@ int print_sandbox_log(char *sandbox_log) return 0; } - len = file_length(sandbox_log_file); + len = rc_get_size(sandbox_log, TRUE); buffer = (char *)xmalloc((len + 1) * sizeof(char)); memset(buffer, 0, len + 1); read(sandbox_log_file, buffer, len); |