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

Comment # 6 on bug 8707 from
(In reply to comment #5)
>            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() ?

Good idea.  I'll resubmit the patch shortly.  Thanks.


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