diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/buffering.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index e37b053881..123c7bc85f 100644 --- a/apps/buffering.c +++ b/apps/buffering.c | |||
@@ -1572,6 +1572,11 @@ void buffering_init(void) | |||
1572 | /* Initialise the buffering subsystem */ | 1572 | /* Initialise the buffering subsystem */ |
1573 | bool buffering_reset(char *buf, size_t buflen) | 1573 | bool buffering_reset(char *buf, size_t buflen) |
1574 | { | 1574 | { |
1575 | /* Wraps of storage-aligned data must also be storage aligned, | ||
1576 | thus buf and buflen must be a aligned to an integer multiple of | ||
1577 | the storage alignment */ | ||
1578 | STORAGE_ALIGN_BUFFER(buf, buflen); | ||
1579 | |||
1575 | if (!buf || !buflen) | 1580 | if (!buf || !buflen) |
1576 | return false; | 1581 | return false; |
1577 | 1582 | ||