[Asterisk-cvs] asterisk/apps app_voicemail.c,1.194,1.195
markster at lists.digium.com
markster at lists.digium.com
Sun Jan 9 23:25:28 CST 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv29067/apps
Modified Files:
app_voicemail.c
Log Message:
Truncate file as appropriate (bug #3304)
Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -d -r1.194 -r1.195
--- app_voicemail.c 10 Jan 2005 04:18:18 -0000 1.194
+++ app_voicemail.c 10 Jan 2005 05:29:46 -0000 1.195
@@ -772,6 +772,8 @@
SQLFreeHandle (SQL_HANDLE_STMT, stmt);
goto yuck;
}
+ fdlen = colsize;
+ ftruncate(fd, fdlen);
}
} else {
res = SQLGetData(stmt, x + 1, SQL_CHAR, rowdata, sizeof(rowdata), NULL);
@@ -780,7 +782,6 @@
SQLFreeHandle (SQL_HANDLE_STMT, stmt);
goto yuck;
}
- printf("Got field '%s'\n", coltitle);
if (strcmp(coltitle, "msgnum") && strcmp(coltitle, "dir") && f)
fprintf(f, "%s=%s\n", coltitle, rowdata);
}
More information about the svn-commits
mailing list