diff options
| author | Tom Rini <[email protected]> | 2019-08-20 21:40:12 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-08-20 21:40:12 -0400 |
| commit | 1e60ccd94318fb86610e1e28512b2aaac5f4b069 (patch) | |
| tree | 0f0c94502ee6c35a35bf469cc4cdd256b13dcaa5 /tools | |
| parent | 000fc151150150c36c58f6d8e8d2e27d3b668a7d (diff) | |
| parent | 4f23d245112bd17898fda5601662d725d8aed9f9 (diff) | |
Merge branch '2019-08-20-master-imports'
- Assorted bugfixes
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/easylogo/easylogo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/easylogo/easylogo.c b/tools/easylogo/easylogo.c index 4ba86bf7607..ed4bf203dd8 100644 --- a/tools/easylogo/easylogo.c +++ b/tools/easylogo/easylogo.c @@ -450,7 +450,8 @@ int image_save_header (image_t * image, char *filename, char *varname) default: strcpy (app, str); - sprintf (str, "%s, 0x%02x", app, *dataptr++); + sprintf(str, "%.*s, 0x%02x", (int)sizeof(str) - 7, app, + *dataptr++); col++; count--; break; |
