diff options
Diffstat (limited to 'ktalkd')
-rw-r--r-- | ktalkd/ktalkd/readcfg++.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ktalkd/ktalkd/readcfg++.cpp b/ktalkd/ktalkd/readcfg++.cpp index c59cf0ca..0ffe7120 100644 --- a/ktalkd/ktalkd/readcfg++.cpp +++ b/ktalkd/ktalkd/readcfg++.cpp @@ -145,7 +145,7 @@ int read_user_config(const char * key, char * result, int max) TQString Qresult; if ((Qresult = cfg -> readEntry(key, "unset")) != "unset") { - qstrncpy( result, Qresult.ascii(), max); + tqstrncpy( result, Qresult.ascii(), max); if (Options.debug_mode) syslog(LOG_DEBUG,"User option %s : %s", key, result); return 1; @@ -212,28 +212,28 @@ int process_config_file(void) ktalk_debug("Sound : %d",Options.sound); } if (found("SoundFile")) { - qstrncpy(Options.soundfile,TQFile::encodeName(result),S_CFGLINE); + tqstrncpy(Options.soundfile,TQFile::encodeName(result),S_CFGLINE); ktalk_debug("SoundFile = %s",Options.soundfile); } if (found("SoundPlayer")) { - qstrncpy(Options.soundplayer,TQFile::encodeName(result),S_CFGLINE); + tqstrncpy(Options.soundplayer,TQFile::encodeName(result),S_CFGLINE); ktalk_debug("SoundPlayer = %s",Options.soundplayer); } if (found("SoundPlayerOpt")) { - qstrncpy(Options.soundplayeropt,TQFile::encodeName(result),S_CFGLINE); + tqstrncpy(Options.soundplayeropt,TQFile::encodeName(result),S_CFGLINE); ktalk_debug("SoundPlayerOpt = %s",Options.soundplayeropt); } if (found("MailProg")) { - qstrncpy(Options.mailprog,TQFile::encodeName(result),S_CFGLINE); + tqstrncpy(Options.mailprog,TQFile::encodeName(result),S_CFGLINE); ktalk_debug("Mail prog = %s",Options.mailprog); } /* text based announcement */ - if (found("Announce1")) { qstrncpy(Options.announce1,result.local8Bit(),S_CFGLINE); } - if (found("Announce2")) { qstrncpy(Options.announce2,result.local8Bit(),S_CFGLINE); } - if (found("Announce3")) { qstrncpy(Options.announce3,result.local8Bit(),S_CFGLINE); } + if (found("Announce1")) { tqstrncpy(Options.announce1,result.local8Bit(),S_CFGLINE); } + if (found("Announce2")) { tqstrncpy(Options.announce2,result.local8Bit(),S_CFGLINE); } + if (found("Announce3")) { tqstrncpy(Options.announce3,result.local8Bit(),S_CFGLINE); } if (found("NEUUser")) { - qstrncpy(Options.NEU_user,result.local8Bit(),S_CFGLINE); + tqstrncpy(Options.NEU_user,result.local8Bit(),S_CFGLINE); ktalk_debug("NEUUser = %s", Options.NEU_user); } if (found("NEUBehaviour")) { @@ -241,16 +241,16 @@ int process_config_file(void) ktalk_debug("NEUBehaviour : %d",Options.NEU_behaviour); } if (found("NEUForwardMethod")) { - qstrncpy(Options.NEU_forwardmethod,result.ascii(),5); + tqstrncpy(Options.NEU_forwardmethod,result.ascii(),5); ktalk_debug("NEUForwardMethod = %s", Options.NEU_forwardmethod); } if (found("ExtPrg")) { - qstrncpy(Options.extprg,TQFile::encodeName(result),S_CFGLINE); + tqstrncpy(Options.extprg,TQFile::encodeName(result),S_CFGLINE); ktalk_debug("Ext prg = %s",Options.extprg); } else { /* has to work even without config file at all */ KStandardDirs stddirs; - qstrncpy(Options.extprg, TQFile::encodeName(stddirs.findResource("exe","ktalkdlg")), S_CFGLINE-1); + tqstrncpy(Options.extprg, TQFile::encodeName(stddirs.findResource("exe","ktalkdlg")), S_CFGLINE-1); } delete syscfg; |