diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-10-28 21:47:32 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-10-28 21:47:32 +0000 |
commit | fc43317556bb79c019fae61f89df879cac04489c (patch) | |
tree | 22769664b87fdc058ef25d5c3e17f6f22e538578 /plugins/asn1 | |
parent | ee2ddb83fc5c402622b3151e4c63b88d917a0fb8 (diff) |
Use "get_datafile_path()", rather than constructing the default ASN.1
file path by hand.
Set "default_asn1_filename", not "asn1_filename", to the default path.
svn path=/trunk/; revision=8810
Diffstat (limited to 'plugins/asn1')
-rw-r--r-- | plugins/asn1/packet-asn1.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c index 955b2a98c4..c1d3a7635a 100644 --- a/plugins/asn1/packet-asn1.c +++ b/plugins/asn1/packet-asn1.c @@ -3,7 +3,7 @@ * * Copyright (c) 2003 by Matthijs Melchior <matthijs.melchior@xs4all.nl> * - * $Id: packet-asn1.c,v 1.3 2003/10/28 21:04:16 guy Exp $ + * $Id: packet-asn1.c,v 1.4 2003/10/28 21:47:32 guy Exp $ * * A plugin for: * @@ -4673,11 +4673,7 @@ proto_register_asn1(void) { "Desegment ASN.1 messages that span TCP segments", &asn1_desegment); - { - int n = strlen(get_datafile_dir()) + sizeof(ASN1FILE) + 2; - asn1_filename = g_malloc(n); - snprintf(asn1_filename, n, "%s" G_DIR_SEPARATOR_S "%s", get_datafile_dir(), ASN1FILE); - } + default_asn1_filename = get_datafile_path(ASN1FILE); asn1_filename = default_asn1_filename; prefs_register_string_preference(asn1_module, "file", |