-- fix an error due to -D_FORTIFY_SOURCE=2 being enabled on ubuntu's gcc

This commit is contained in:
pfelt
2010-09-03 16:45:31 +00:00
parent 79aa8d5cdb
commit 3639f9afea
+1 -1
View File
@@ -55,7 +55,7 @@ BongoAgentHandleSignal(BongoAgent *agent,
const int buff_size = 50;
snprintf(path, XPL_MAX_PATH, "%s/guru-meditation-%d", XPL_DEFAULT_WORK_DIR, (int)time(NULL));
boomfile = open(path, O_CREAT | O_WRONLY);
boomfile = open(path, O_CREAT | O_WRONLY, (S_IRUSR | S_IWUSR));
if (boomfile != -1) {
void * buffer[buff_size];
int buff_used;