SHARE
TWEET

Untitled

a guest Sep 20th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/core/SettingManager.cpp b/core/SettingManager.cpp
  2. index 410b858..78092fe 100644
  3. --- a/core/SettingManager.cpp
  4. +++ b/core/SettingManager.cpp
  5. @@ -504,7 +504,7 @@ void SettingManager::Save() {
  6.  
  7.      for(size_t szi = 0; szi < SETBOOL_IDS_END; szi++) {
  8.         // Don't save empty hint
  9. -       if(SetBoolCom[szi] != '\0') {
  10. +       if(SetBoolCom[szi][0] != '\0') {
  11.                         fputs(SetBoolCom[szi], fSettingsFile);
  12.                 }
  13.  
  14. @@ -527,7 +527,7 @@ void SettingManager::Save() {
  15.  
  16.      for(size_t szi = 0; szi < SETSHORT_IDS_END; szi++) {
  17.         // Don't save empty hint
  18. -       if(SetShortCom[szi] != '\0') {
  19. +       if(SetShortCom[szi][0] != '\0') {
  20.                         fputs(SetShortCom[szi], fSettingsFile);
  21.                 }
  22.  
  23. @@ -550,7 +550,7 @@ void SettingManager::Save() {
  24.  
  25.      for(size_t szi = 0; szi < SETTXT_IDS_END; szi++) {
  26.         // Don't save empty hint
  27. -       if(SetTxtCom[szi] != '\0') {
  28. +       if(SetTxtCom[szi][0] != '\0') {
  29.                         fputs(SetTxtCom[szi], fSettingsFile);
  30.                 }
  31.  
  32. @@ -1112,6 +1112,7 @@ void SettingManager::SetText(const size_t szTxtId, const char * sTxt, const size
  33.              if(szLen == 0 || szLen > 64 || strpbrk(sTxt, " $|") != NULL) {
  34.                  return;
  35.              }
  36. +            break;
  37.          case SETTXT_TCP_PORTS:
  38.              if(szLen == 0 || szLen > 64) {
  39.                  return;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top