From 73f0a9099304929c48cdbe0c686097b86a2db8e9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 1 May 2002 22:21:12 +0000 Subject: [PATCH] BScreen::resource.root_command wasnt being initialized --- src/Screen.cc | 1 + src/Toolbar.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index 2c46a836..6749c430 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -214,6 +214,7 @@ BScreen::BScreen(Openbox &ob, int scrn, Resource &conf) : ScreenInfo(ob, scrn), resource.tstyle.fontset = resource.wstyle.fontset = NULL; resource.mstyle.t_font = resource.mstyle.f_font = resource.tstyle.font = resource.wstyle.font = NULL; + resource.root_command = NULL; #ifdef SLIT slit = NULL; diff --git a/src/Toolbar.cc b/src/Toolbar.cc index d238d1ea..6e54b018 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -397,7 +397,7 @@ void Toolbar::reconfigure() { if (tt) { char t[1025], *time_string = (char *) 0; int len = strftime(t, 1024, screen.strftimeFormat(), tt); - t[len++-1] = ' '; // add a space to the string for padding + t[len++] = ' '; // add a space to the string for padding t[len] = '\0'; if (i18n->multibyte()) { -- 2.45.2