2014-08-18 19:30:44 +00:00
|
|
|
--- LibYAML/perl_libyaml.c
|
|
|
|
+++ LibYAML/perl_libyaml.c
|
|
|
|
@@ -188,7 +188,7 @@ Load(SV *yaml_sv)
|
2012-03-29 17:56:28 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
load_error:
|
|
|
|
- croak(loader_error_msg(&loader, NULL));
|
|
|
|
+ croak("%s", loader_error_msg(&loader, NULL));
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2014-08-18 19:30:44 +00:00
|
|
|
@@ -271,7 +271,7 @@ load_node(perl_yaml_loader_t *loader)
|
2012-03-29 17:56:28 +00:00
|
|
|
return return_sv;
|
|
|
|
|
|
|
|
load_error:
|
|
|
|
- croak(loader_error_msg(loader, NULL));
|
|
|
|
+ croak("%s", loader_error_msg(loader, NULL));
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2014-08-18 19:30:44 +00:00
|
|
|
@@ -314,7 +314,7 @@ load_mapping(perl_yaml_loader_t *loader,
|
2012-03-29 17:56:28 +00:00
|
|
|
else if (strlen(tag) <= strlen(prefix) ||
|
|
|
|
! strnEQ(tag, prefix, strlen(prefix))
|
|
|
|
) croak(
|
|
|
|
- loader_error_msg(loader, form("bad tag found for hash: '%s'", tag))
|
|
|
|
+ "%s", loader_error_msg(loader, form("bad tag found for hash: '%s'", tag))
|
|
|
|
);
|
|
|
|
class = tag + strlen(prefix);
|
2014-08-18 19:30:44 +00:00
|
|
|
sv_bless(hash_ref, gv_stashpv(class, TRUE));
|
|
|
|
@@ -347,7 +347,7 @@ load_sequence(perl_yaml_loader_t *loader
|
2012-03-29 17:56:28 +00:00
|
|
|
else if (strlen(tag) <= strlen(prefix) ||
|
|
|
|
! strnEQ(tag, prefix, strlen(prefix))
|
|
|
|
) croak(
|
|
|
|
- loader_error_msg(loader, form("bad tag found for array: '%s'", tag))
|
|
|
|
+ "%s", loader_error_msg(loader, form("bad tag found for array: '%s'", tag))
|
|
|
|
);
|
|
|
|
class = tag + strlen(prefix);
|
2014-08-18 19:30:44 +00:00
|
|
|
sv_bless(array_ref, gv_stashpv(class, TRUE));
|