fixing --enable-final and some minor warnings

svn path=/trunk/kdebase/konsole/; revision=28306
wilder-portage
Stephan Kulow 27 years ago
parent 84166bef64
commit 45d27808f8
  1. 2
      src/TEShell.C
  2. 6
      src/kwrited.C

@ -113,7 +113,9 @@ extern "C" {
#include <kglobal.h>
#include <kstddirs.h>
#ifndef HERE
#define HERE fprintf(stdout,"%s(%d): here\n",__FILE__,__LINE__)
#endif
FILE* syslog_file = NULL; //stdout;

@ -51,8 +51,12 @@ KWrited::~KWrited()
void KWrited::block_in(const char* txt, int len)
{
if (len < 0) len = 0;
char _text[len+1]; strncpy(_text,txt,len); _text[len] = 0; wid->insert(_text);
char *_text = new char[len+1];
strncpy(_text,txt,len);
_text[len] = 0;
wid->insert(_text);
wid->show(); KWM::raise(wid->winId());
delete _text;
}
int main(int argc, char* argv[])

Loading…
Cancel
Save