[Asterisk-cvs] asterisk/cdr cdr_csv.c,1.9,1.10
markster at lists.digium.com
markster at lists.digium.com
Thu Oct 7 13:48:58 CDT 2004
Update of /usr/cvsroot/asterisk/cdr
In directory mongoose.digium.com:/tmp/cvs-serv18844/cdr
Modified Files:
cdr_csv.c
Log Message:
Fix CDR CSV to flush on CDR
Index: cdr_csv.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/cdr_csv.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- cdr_csv.c 14 Jul 2004 13:57:15 -0000 1.9
+++ cdr_csv.c 7 Oct 2004 17:50:15 -0000 1.10
@@ -184,7 +184,7 @@
static int writefile(char *s, char *acc)
{
- char tmp[256];
+ char tmp[AST_CONFIG_MAX_PATH];
FILE *f;
if (strchr(acc, '/') || (acc[0] == '.')) {
ast_log(LOG_WARNING, "Account code '%s' insecure for writing file\n", acc);
@@ -195,6 +195,7 @@
if (!f)
return -1;
fputs(s, f);
+ fflush(f);
fclose(f);
return 0;
}
More information about the svn-commits
mailing list