berns 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.org +4 -0
- data/ext/berns/berns.c +2 -2
- data/lib/berns/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8cce0df8142c8a2057ccaebe098b64e250c11d57ec2c1a6ddaa90a965b8d9d1
|
4
|
+
data.tar.gz: 367bc79f457574800fd20ec28a51a8a81fe8c45cfaa05bf94c4b47cdfdeac3ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9535d2513301b4b1a03eb0dd1105bdef5dc39b849c6964a5f79d218f695c7cfc40377147ef3262fc58290626b99b4d119698ae39812e37356a36315a0f3e95ab
|
7
|
+
data.tar.gz: 48ee25901e3d204953472b4a9e1e4e1193c71dee33711e5a8160bdcd8e9322cdfde7721f15bcc50f0b4cea03d254130c44a55a03920ec389bb2c04638e84c18b
|
data/CHANGELOG.org
CHANGED
data/ext/berns/berns.c
CHANGED
@@ -122,7 +122,7 @@ static VALUE berns_to_attribute(const VALUE self, VALUE attribute, const VALUE v
|
|
122
122
|
if (i > 0) {
|
123
123
|
size = size + splen + subattrlen;
|
124
124
|
|
125
|
-
char *tmp = realloc(substring, size);
|
125
|
+
char *tmp = realloc(substring, size + 1);
|
126
126
|
|
127
127
|
if (tmp == NULL) {
|
128
128
|
rb_raise(rb_eNoMemError, "Berns.to_attribute could not allocate sufficient memory.");
|
@@ -134,7 +134,7 @@ static VALUE berns_to_attribute(const VALUE self, VALUE attribute, const VALUE v
|
|
134
134
|
stecpy(substring + size - subattrlen, RSTRING_PTR(subattr), substring + size + 1);
|
135
135
|
} else {
|
136
136
|
size = size + subattrlen;
|
137
|
-
char *tmp = realloc(substring, size);
|
137
|
+
char *tmp = realloc(substring, size + 1);
|
138
138
|
|
139
139
|
if (tmp == NULL) {
|
140
140
|
rb_raise(rb_eNoMemError, "Berns.to_attribute could not allocate sufficient memory.");
|
data/lib/berns/version.rb
CHANGED