55 * Check if the line in row is allocated. If not, do it |
55 * Check if the line in row is allocated. If not, do it |
56 * and make sure the chain is valid. |
56 * and make sure the chain is valid. |
57 */ |
57 */ |
58 while (row > current_lines) { |
58 while (row > current_lines) { |
59 |
59 |
60 syslog(LOG_NOTICE, "lcd_buf_write(%d, ...) allowcate new row", row); |
60 syslog(LOG_NOTICE, "lcd_buf_write(%d, ...) allocate new row", row); |
61 newrow = (lcd_rows *)malloc(sizeof(lcd_rows)); |
61 newrow = (lcd_rows *)malloc(sizeof(lcd_rows)); |
62 newrow->next = NULL; |
62 newrow->next = NULL; |
63 snprintf(newrow->row, (Config.lcd_cols + 1) * sizeof(char), " "); |
63 snprintf(newrow->row, (Config.lcd_cols + 1) * sizeof(char), " "); |
64 |
64 |
65 if (my_lcd_rows == NULL) { |
65 if (my_lcd_rows == NULL) { |