decode_www_form_component 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ decode_uri_changed(VALUE uri, unsigned i)
|
|
10
10
|
int j;
|
11
11
|
char *r;
|
12
12
|
VALUE ret = rb_usascii_str_new(NULL, length);
|
13
|
-
|
13
|
+
rb_str_set_len(ret, 0);
|
14
14
|
rb_str_cat(ret, u, i);
|
15
15
|
r = StringValuePtr(ret);
|
16
16
|
for (j = i; i < length; i++) {
|
@@ -31,7 +31,7 @@ decode_uri_changed(VALUE uri, unsigned i)
|
|
31
31
|
r[j++] = u[i];
|
32
32
|
}
|
33
33
|
}
|
34
|
-
|
34
|
+
rb_str_set_len(ret, j);
|
35
35
|
return ret;
|
36
36
|
}
|
37
37
|
|