mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
FIX: mdb-sql crashed with SIGSEGV in _IO_vfprintf_internal() on amd64
https://bugs.launchpad.net/ubuntu/+source/mdbtools/+bug/1227033
This commit is contained in:
parent
a7a39a34ee
commit
bb08d92bfb
@ -51,10 +51,13 @@ mdb_sql_error(MdbSQL* sql, char *fmt, ...)
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
vfprintf (stderr, fmt, ap);
|
||||
vsprintf(sql->error_msg, fmt, ap);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
va_end(ap);
|
||||
fprintf(stderr,"\n");
|
||||
|
||||
va_start(ap, fmt);
|
||||
vsprintf(sql->error_msg, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
int mdb_sql_yyinput(char *buf, int need)
|
||||
|
Loading…
Reference in New Issue
Block a user