struct status_block *err_block = scalloc(sizeof(struct status_block));
err_block->full_text = i3string_from_utf8("Error: ");
- err_block->name = "error";
- err_block->color = "red";
+ err_block->name = sstrdup("error");
+ err_block->color = sstrdup("red");
err_block->no_separator = true;
struct status_block *message_block = scalloc(sizeof(struct status_block));
message_block->full_text = i3string_from_utf8(message);
- message_block->name = "error_message";
- message_block->color = "red";
+ message_block->name = sstrdup("error_message");
+ message_block->color = sstrdup("red");
message_block->no_separator = true;
TAILQ_INSERT_HEAD(&statusline_head, err_block, blocks);