diff options
| author | William Wilgus <me.theuser@yahoo.com> | 2018-07-25 20:53:17 +0200 |
|---|---|---|
| committer | William Wilgus <me.theuser@yahoo.com> | 2018-07-25 20:53:17 +0200 |
| commit | ff7d2bdee1e25148bc9775f9b804424c8e1a37b9 (patch) | |
| tree | 90e8f8f323dd535a22f44bbb546da30b23b710d8 /firmware/export/scroll_engine.h | |
| parent | 1054b5748ca2ad1fd598bb95312112f6568cb1dd (diff) | |
| download | rockbox-ff7d2bdee1e25148bc9775f9b804424c8e1a37b9.zip rockbox-ff7d2bdee1e25148bc9775f9b804424c8e1a37b9.tar.gz rockbox-ff7d2bdee1e25148bc9775f9b804424c8e1a37b9.tar.bz2 rockbox-ff7d2bdee1e25148bc9775f9b804424c8e1a37b9.tar.xz | |
Fix lcd-scroll.c truncation warnings
Change-Id: I312ec7ad06fde5b2f9747661cd2d4ffcb4cbf755
Diffstat (limited to 'firmware/export/scroll_engine.h')
| -rw-r--r-- | firmware/export/scroll_engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index ce230a2..ee2dfb6 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h @@ -67,7 +67,7 @@ extern bool lcd_remote_scroll_now(struct scrollinfo *scroll); struct scrollinfo { struct viewport* vp; - char linebuffer[9*MAX_PATH/10]; + char linebuffer[(SCROLL_LINE_SIZE / 2) - 1]; const char *line; /* rectangle for the line */ int x, y; /* relative to the viewort */ |