multi_string_replace 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72d264c0f004c543ee366c43752b7d80b411a8cb95143c6e875a3426fe714b37
4
- data.tar.gz: f7f1fc6527d23d292608b177af9522c250b18b9d8edda50159c50a3da728ec4f
3
+ metadata.gz: f1a53ef0a40acd23f625842f8ce1335b69e28b4334896ef50989c09936f4601b
4
+ data.tar.gz: 64880e395d26638853ab4501d76f9c882628410df8a1a41bea533249b8d0b447
5
5
  SHA512:
6
- metadata.gz: dd1a23c3980abb96c2016063b67c05aec5931af39606736763e427809ba6aec4892a321372bd4ff775108581192be19d992efab17509fc64ea83672015a29966
7
- data.tar.gz: 365a8a589f2950c7b9641a03ac56ca29a3cbf865579013df03c0a52b61fc4d58a7c51e09ad435b7b3876ebfc22dc33c27df63a931b2972bd66afd63aad0ccf14
6
+ metadata.gz: 2b3f3479e79dbca29630549b6895c714069d6baa134e184a8f87488203b4aac551b5b2e8759de5dfd4bd9b30d4abc5d5a8c8cb9fd56742801361f504c9d21829
7
+ data.tar.gz: e88071ce970e38300297472214eb73bb368308e924bb57ee80488228ac57eb820348d3e573566ca7fb4148083434e1071d96e53725307a50e0b9f21041f61c25
@@ -42,7 +42,7 @@ int aho_add_match_text(struct ahocorasick * restrict aho, const char* text, unsi
42
42
  if (!a_text)
43
43
  goto lack_free_mem;
44
44
 
45
- a_text->text = (char*) malloc(sizeof(char)*len);
45
+ a_text->text = (char*) malloc(sizeof(char)*(len + 1));
46
46
 
47
47
  if (!a_text->text)
48
48
  goto lack_free_mem;
@@ -1,3 +1,3 @@
1
1
  module MultiStringReplace
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_string_replace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Dayo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-15 00:00:00.000000000 Z
11
+ date: 2022-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler