diff options
-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", |