summaryrefslogtreecommitdiff
path: root/src/lib/lzma.c
diff options
context:
space:
mode:
authorMartin Roth <martin.roth@se-eng.com>2013-07-09 21:51:14 -0600
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-07-10 20:17:51 +0200
commitcbf2bd715a6a3c5d758c52b4634284b260805d17 (patch)
tree7ab8f3e81ac8ca14c6c37e4bf733332a99d0acb1 /src/lib/lzma.c
parent63373edce006983d1e2aef7d71c1653ae337ed18 (diff)
lib: Fix spelling
Change-Id: I999987af9cb44906e3c3135c0351a0cd6eb210ff Signed-off-by: Martin Roth <martin.roth@se-eng.com> Reviewed-on: http://review.coreboot.org/3756 Reviewed-by: Dave Frodin <dave.frodin@se-eng.com> Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/lib/lzma.c')
-rw-r--r--src/lib/lzma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/lzma.c b/src/lib/lzma.c
index cd60b3f3b2..674a029fd3 100644
--- a/src/lib/lzma.c
+++ b/src/lib/lzma.c
@@ -34,8 +34,8 @@ unsigned long ulzma(unsigned char * src, unsigned char * dst)
memcpy(properties, src, LZMA_PROPERTIES_SIZE);
/* The outSize in LZMA stream is a 64bit integer stored in little-endian
* (ref: lzma.cc@LZMACompress: put_64). To prevent accessing by
- * unaligned memory address and to load in correct endianess, read each
- * byte and re-costruct. */
+ * unaligned memory address and to load in correct endianness, read each
+ * byte and re-construct. */
cp = src + LZMA_PROPERTIES_SIZE;
outSize = cp[3] << 24 | cp[2] << 16 | cp[1] << 8 | cp[0];
if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK) {