From 8d1eeb58e450ef4a81497c3233a929350af3e467 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Tue, 14 Jul 2009 13:27:21 +0300 Subject: blob: some helpers to replace snprintf snprintf is dog slow. make the blob stuff have some helper functions so we can use them in code paths that are executed often. --- src/archive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/archive.c') diff --git a/src/archive.c b/src/archive.c index 7e5a926..450c956 100644 --- a/src/archive.c +++ b/src/archive.c @@ -48,7 +48,7 @@ struct tar_header { static int get_octal(char *s, size_t l) { apk_blob_t b = APK_BLOB_PTR_LEN(s, l); - return apk_blob_parse_uint(&b, 8); + return apk_blob_pull_uint(&b, 8); } struct apk_tar_entry_istream { -- cgit v1.2.3