bandb: do not blindly pass a buffer to a function that takes a format string (closes #27)

This commit is contained in:
William Pitcock 2013-07-20 07:14:14 +00:00
parent f25830592d
commit e717686ac1

View file

@ -289,7 +289,7 @@ db_error_cb(const char *errstr)
{
char buf[256];
rb_snprintf(buf, sizeof(buf), "! :%s", errstr);
rb_helper_write(bandb_helper, buf);
rb_helper_write(bandb_helper, "%s", buf);
rb_sleep(2 << 30, 0);
exit(1);
}