aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPascal Quantin <pascal@wireshark.org>2020-12-15 22:00:49 +0100
committerAndersBroman <a.broman58@gmail.com>2020-12-16 04:48:53 +0000
commit099554adb0c182c27df7cd47d9efe4324c6ea5c3 (patch)
treef81de00d0d5edca7eaac7cfe2adccb6738e73686 /tools
parent3e3194092ccb201208f214461f060d2cc8a87e3c (diff)
extract_asn1_from_spec.pl: fix parsing with CRLF line ending
Diffstat (limited to 'tools')
-rwxr-xr-xtools/extract_asn1_from_spec.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/extract_asn1_from_spec.pl b/tools/extract_asn1_from_spec.pl
index e453dce8df..e928736a88 100755
--- a/tools/extract_asn1_from_spec.pl
+++ b/tools/extract_asn1_from_spec.pl
@@ -96,7 +96,7 @@ sub extract_asn1 {
syswrite OUTPUT_FILE,"-- "."$version"."\n";
}
- if (($line =~ /^END$/) && (defined fileno OUTPUT_FILE)){
+ if (($line =~ /^END[\r\n]/) && (defined fileno OUTPUT_FILE)){
syswrite OUTPUT_FILE,"$line";
close(OUTPUT_FILE);
$is_asn1 = 0;