diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-04-28 17:06:34 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-04-28 17:06:34 +0300 |
commit | 3be21fb12f4cec2cf07799e8960382f4cb375369 (patch) | |
tree | a20ea08ae1eb3237a73cc68c2f0828a57f56e381 /src/lzmadec | |
parent | Prevent LZ encoder from hanging with known uncompressed (diff) | |
download | xz-3be21fb12f4cec2cf07799e8960382f4cb375369.tar.xz |
Fixed wrong spelling "limitter" to "limiter". This affects
liblzma's API.
Diffstat (limited to 'src/lzmadec')
-rw-r--r-- | src/lzmadec/lzmadec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lzmadec/lzmadec.c b/src/lzmadec/lzmadec.c index eca58b98..f92deadd 100644 --- a/src/lzmadec/lzmadec.c +++ b/src/lzmadec/lzmadec.c @@ -482,15 +482,15 @@ main(int argc, char **argv) lzma_init_decoder(); - lzma_memlimit *mem_limitter = lzma_memlimit_create(mem_limit); - if (mem_limitter == NULL) { + lzma_memlimit *mem_limiter = lzma_memlimit_create(mem_limit); + if (mem_limiter == NULL) { fprintf(stderr, "%s: %s\n", argv0, strerror(ENOMEM)); exit(ERROR); } - assert(lzma_memlimit_count(mem_limitter) == 0); + assert(lzma_memlimit_count(mem_limiter) == 0); - allocator.opaque = mem_limitter; + allocator.opaque = mem_limiter; strm.allocator = &allocator; #ifdef WIN32 @@ -528,8 +528,8 @@ main(int argc, char **argv) // Free the memory only when debugging. Freeing wastes some time, // but allows detecting possible memory leaks with Valgrind. lzma_end(&strm); - assert(lzma_memlimit_count(mem_limitter) == 0); - lzma_memlimit_end(mem_limitter, false); + assert(lzma_memlimit_count(mem_limiter) == 0); + lzma_memlimit_end(mem_limiter, false); #endif return exit_status; |