Wireshark-bugs: [Wireshark-bugs] [Bug 8707] Preferences with trailing commas are ignored
Date: Thu, 30 May 2013 15:28:38 +0000

changed bug 8707

What Removed Added
CC   darkjames-ws@darkjames.pl

Comment # 5 on bug 8707 from
           if (cur_var->len > 0) {
             if (got_val) {
+              if (cur_val->str[strlen(cur_val->str)-1] == ',') {
+                /* 
+                 * If the pref has a trailing comma, eliminate it.
+                 */
+                cur_val->str[strlen(cur_val->str)-1] = '\0';

can we use cur_var->len instead of strlen() ?


You are receiving this mail because:
  • You are watching all bug changes.