aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs-int.h
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-10-29 22:09:31 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-10-29 22:09:31 +0000
commit6eba069093ef665b3fa5f179dd315ab89916c4e7 (patch)
tree03ef3c16c38dc1cbbbfe2b3a95f8544a1836b967 /epan/prefs-int.h
parente21ca351167349c9ba531bee03ba99eca889a408 (diff)
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4768 :
Return an error if the user specifies a value in a range in excess of the range-specified maximum. Except when reading in preferences files which might have ranges that exceed the maximum (because we didn't use to check): in that case silently lower the out-of-range values. svn path=/trunk/; revision=34698
Diffstat (limited to 'epan/prefs-int.h')
-rw-r--r--epan/prefs-int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/prefs-int.h b/epan/prefs-int.h
index ede8afccb7..8208bfa3d2 100644
--- a/epan/prefs-int.h
+++ b/epan/prefs-int.h
@@ -115,11 +115,11 @@ struct preference {
/**
* Given a string of the form "<pref name>:<pref value>", as might appear
* as an argument to a "-o" option, parse it and set the preference in
- * question.
+ * question.
* @return an indication of whether it succeeded or failed
* in some fashion.
*/
-typedef prefs_set_pref_e (*pref_set_pair_cb) (gchar *key, gchar *value, void *private_data);
+typedef prefs_set_pref_e (*pref_set_pair_cb) (gchar *key, gchar *value, void *private_data, gboolean return_range_errors);
/** read the preferences file (or similiar) and call the callback
* function to set each key/value pair found