diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-01-29 21:27:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-01-29 21:27:36 +0000 |
commit | 60f5f856fde9e22f7889a1d8e1aa4aafdf83f459 (patch) | |
tree | fb4f5684af8c0a598a25bf328a10ea19c5ca0026 /prefs.c | |
parent | fb2884ff996e6266ef9daec804034975e2ff4e95 (diff) |
Fix a couple of checks for families with renamed preferences.
svn path=/trunk/; revision=7034
Diffstat (limited to 'prefs.c')
-rw-r--r-- | prefs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* prefs.c * Routines for handling preferences * - * $Id: prefs.c,v 1.94 2003/01/28 23:56:40 guy Exp $ + * $Id: prefs.c,v 1.95 2003/01/29 21:27:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1658,7 +1658,7 @@ set_pref(gchar *pref_name, gchar *value) pref = find_preference(module, "desegment"); else if (strcmp(dotp, "fcip_port") == 0) pref = find_preference(module, "target_port"); - } else if (strncmp(pref_name, "gtp.", 5) == 0) { + } else if (strncmp(pref_name, "gtp.", 4) == 0) { /* Handle old names for GTP preferences. */ if (strcmp(dotp, "gtpv0_port") == 0) pref = find_preference(module, "v0_port"); @@ -1690,7 +1690,7 @@ set_pref(gchar *pref_name, gchar *value) /* Handle old names for MTP3 preferences. */ if (strcmp(dotp, "mtp3_standard") == 0) pref = find_preference(module, "standard"); - } else if (strncmp(pref_name, "nlm.", 5) == 0) { + } else if (strncmp(pref_name, "nlm.", 4) == 0) { /* Handle old names for NLM preferences. */ if (strcmp(dotp, "nlm_msg_res_matching") == 0) pref = find_preference(module, "msg_res_matching"); |