This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 19th, 2010  |  syntax: None  |  size: 0.88 KB  |  views: 101  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
  2. index 4323bb0..115c6ad 100644
  3. --- a/apps/gui/bitmap/list.c
  4. +++ b/apps/gui/bitmap/list.c
  5. @@ -238,12 +238,12 @@ void list_draw(struct screen *display, struct gui_synclis
  6.      {
  7.          /* do the text */
  8.          unsigned const char *s;
  9. -        char entry_buffer[MAX_PATH];
  10. +        char entry_buffer[MAX_PATH] = "   ";
  11.          unsigned char *entry_name;
  12.          int text_pos = 0;
  13.          int line = i - start;
  14. -        s = list->callback_get_item_name(i, list->data, entry_buffer,
  15. -                                         sizeof(entry_buffer));
  16. +        s = list->callback_get_item_name(i, list->data, &entry_buffer[strlen(e
  17. +                                         sizeof(entry_buffer) - strlen(entry_b
  18.          entry_name = P2STR(s);
  19.          display->set_viewport(list_text_vp);
  20.          style = STYLE_DEFAULT;
clone this paste RAW Paste Data