mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Replicate fix from 51158 (app_voicemail) to app_directory (Issue 9224)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -97,7 +97,7 @@ static void retrieve_file(char *dir)
|
|||||||
void *fdm = MAP_FAILED;
|
void *fdm = MAP_FAILED;
|
||||||
SQLHSTMT stmt;
|
SQLHSTMT stmt;
|
||||||
char sql[256];
|
char sql[256];
|
||||||
char fmt[80]="";
|
char fmt[80]="", empty[10] = "";
|
||||||
char *c;
|
char *c;
|
||||||
SQLLEN colsize;
|
SQLLEN colsize;
|
||||||
char full_fn[256];
|
char full_fn[256];
|
||||||
@@ -148,7 +148,7 @@ static void retrieve_file(char *dir)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = SQLGetData(stmt, 1, SQL_BINARY, NULL, 0, &colsize);
|
res = SQLGetData(stmt, 1, SQL_BINARY, empty, 0, &colsize);
|
||||||
fdlen = colsize;
|
fdlen = colsize;
|
||||||
if (fd > -1) {
|
if (fd > -1) {
|
||||||
char tmp[1]="";
|
char tmp[1]="";
|
||||||
|
Reference in New Issue
Block a user