bandb: do not blindly pass a buffer to a function that takes a format string (closes #27)
This commit is contained in:
parent
f25830592d
commit
e717686ac1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue