style fixes

This commit is contained in:
Daniel Micay 2015-06-22 12:36:24 -04:00
parent b1349a52ea
commit 86e2bc88e8
1 changed files with 3 additions and 3 deletions

View File

@ -1207,7 +1207,7 @@ static void load_theme(GtkWindow *window, VteTerminal *vte, GKeyFile *config, hi
char color_key[] = "color000";
for (unsigned i = 0; i < palette.size(); i++) {
snprintf(color_key, sizeof color_key, "color%u", i);
snprintf(color_key, sizeof(color_key), "color%u", i);
if (auto color = get_config_color(config, "colors", color_key)) {
palette[i] = *color;
} else if (i < 16) {
@ -1588,7 +1588,7 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}
char xid_s[std::numeric_limits<long unsigned>::digits10 + 1];
snprintf(xid_s, sizeof xid_s, "%lu", GDK_WINDOW_XID(gdk_window));
snprintf(xid_s, sizeof(xid_s), "%lu", GDK_WINDOW_XID(gdk_window));
char **env = g_get_environ();
env = g_environ_setenv(env, "WINDOWID", xid_s, TRUE);
env = g_environ_setenv(env, "TERM", term, TRUE);