mbed-os-examples
/
mbed-os-example-mbed5-bootloader
.
Revision 71:f65271241611, committed 2019-11-20
- Comitter:
- mbed_official
- Date:
- Wed Nov 20 14:01:42 2019 +0000
- Parent:
- 70:c572da9f7add
- Commit message:
- Merge pull request #125 from amq/patch-1
Fix a compiler warning
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-bootloader
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue May 07 19:01:45 2019 +0100 +++ b/main.cpp Wed Nov 20 14:01:42 2019 +0000 @@ -61,7 +61,7 @@ while (true) { // Read data for this page - memset(page_buffer, 0, sizeof(page_buffer)); + memset(page_buffer, 0, sizeof(char) * page_size); int size_read = fread(page_buffer, 1, page_size, file); if (size_read <= 0) { break;