[Freeswitch-svn] [commit] r6165 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Mon Nov 5 17:36:59 EST 2007
Author: mikej
Date: Mon Nov 5 17:36:59 2007
New Revision: 6165
Modified:
freeswitch/trunk/src/switch_utils.c
Log:
fix newer freebsd builds.
Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c (original)
+++ freeswitch/trunk/src/switch_utils.c Mon Nov 5 17:36:59 2007
@@ -93,7 +93,7 @@
unsigned char out[B64BUFFLEN + 512];
char *path = NULL;
- snprintf(filename, 80, "%smail.%ld%04x", SWITCH_GLOBAL_dirs.temp_dir, time(NULL), rand() & 0xffff);
+ snprintf(filename, 80, "%smail.%d%04x", SWITCH_GLOBAL_dirs.temp_dir, (int)time(NULL), rand() & 0xffff);
if ((fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644))) {
if (file) {
More information about the Freeswitch-svn
mailing list