From 4bb6f9db025d9c5b84fa730bb2b4f2def310ad0c Mon Sep 17 00:00:00 2001 From: Roel van Dijk Date: Wed, 8 Aug 2012 21:09:51 +0300 Subject: [PATCH] Fix format-security error Build failed in Debian 'wheezy', this fixes the compilation error. --- ext/rubyaudio_ext/ra_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/rubyaudio_ext/ra_sound.c b/ext/rubyaudio_ext/ra_sound.c index a3e1518..8dca203 100644 --- a/ext/rubyaudio_ext/ra_sound.c +++ b/ext/rubyaudio_ext/ra_sound.c @@ -152,7 +152,7 @@ static VALUE ra_sound_init(VALUE self, VALUE source, VALUE mode, VALUE info) { SF_VIRTUAL_IO vir_io = {ra_vir_size, ra_vir_seek, ra_vir_read, ra_vir_write, ra_vir_tell}; snd->snd = sf_open_virtual(&vir_io, snd->mode, sf_info, (void*)source); } - if(snd->snd == NULL) rb_raise(eRubyAudioError, sf_strerror(snd->snd)); + if(snd->snd == NULL) rb_raise(eRubyAudioError, "%s", sf_strerror(snd->snd)); snd->closed = 0; return self;