aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-09 14:48:06 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-09 14:48:06 +0000
commit71efc8a4211a8cc2d6bd2d51c9e6112dea5a4f85 (patch)
tree0228a08ebf7361a38f476b4fc6f0a24102a13f27 /apps
parent0cb54638dd372dd5d72ca48d1a620fc890fc5beb (diff)
Replicate fix from 51158 (app_voicemail) to app_directory (Issue 9224)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@63565 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index c2764a222..65a946d55 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -97,7 +97,7 @@ static void retrieve_file(char *dir)
void *fdm = MAP_FAILED;
SQLHSTMT stmt;
char sql[256];
- char fmt[80]="";
+ char fmt[80]="", empty[10] = "";
char *c;
SQLLEN colsize;
char full_fn[256];
@@ -148,7 +148,7 @@ static void retrieve_file(char *dir)
break;
}
- res = SQLGetData(stmt, 1, SQL_BINARY, NULL, 0, &colsize);
+ res = SQLGetData(stmt, 1, SQL_BINARY, empty, 0, &colsize);
fdlen = colsize;
if (fd > -1) {
char tmp[1]="";