X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_resize.c;fp=src%2Frrd_resize.c;h=66d02afc79d71d8912d45924fd77d2ed87738296;hp=57adbf02ffeb5676915feac648b1aee8fd8182bf;hb=672a5d8877e055d90272210497302afb26e28c8f;hpb=001e472141c96137de1b5267f8de7fb91e204ab7 diff --git a/src/rrd_resize.c b/src/rrd_resize.c index 57adbf0..66d02af 100644 --- a/src/rrd_resize.c +++ b/src/rrd_resize.c @@ -93,7 +93,7 @@ int rrd_resize( } rrdnew.stat_head->float_cookie = rrd_file->file_len + (rrdold.stat_head->ds_cnt * sizeof(rrd_value_t) * modify); - rrd_out_file = rrd_open(outfilename, &rrdnew, RRD_READWRITE | RRD_CREAT); + rrd_out_file = rrd_open(outfilename, &rrdnew, RRD_READWRITE | RRD_CREAT | RRD_CREAT_SETSIZE); if (rrd_out_file == NULL) { rrd_set_error("Can't create '%s': %s", outfilename, rrd_strerror(errno));