diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2014-10-19 20:23:21 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2014-10-19 20:23:21 +0200 |
commit | f0712d5b23073fcb7d73085132ef72748fa31ae8 (patch) | |
tree | 72a59e871377ba5694e47d7920005b1011959ad4 /src/fiasco.c | |
parent | 8d52950ede71561d1f266833f06e747b7d6e0768 (diff) | |
download | 0xFFFF-f0712d5b23073fcb7d73085132ef72748fa31ae8.tar.bz2 |
all: Replace strlen() call on const string with sizeof()-1
Diffstat (limited to 'src/fiasco.c')
-rw-r--r-- | src/fiasco.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fiasco.c b/src/fiasco.c index 0c404bc..74d089f 100644 --- a/src/fiasco.c +++ b/src/fiasco.c @@ -495,7 +495,7 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) { if ( image->layout ) { - layout_name = calloc(1, strlen(name) + strlen(".layout") + 1); + layout_name = calloc(1, strlen(name) + sizeof(".layout")-1 + 1); if ( ! layout_name ) { free(name); ALLOC_ERROR_RETURN(-1); |