X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_usr%2Fv3_mem.c;h=b30b3447ab21f0280b6312fccd7b0cc2a40e0d4a;hb=4b7f19c51325601d7e7569e6101c7bfcdf984ef7;hp=93a511f9f999b70271fe597d07950006c30e4cc9;hpb=0e7cd2d96012d3a3dbf022f7de791f46c5bdccb7;p=palacios.git diff --git a/linux_usr/v3_mem.c b/linux_usr/v3_mem.c index 93a511f..b30b344 100644 --- a/linux_usr/v3_mem.c +++ b/linux_usr/v3_mem.c @@ -655,7 +655,7 @@ static int offline_memory(unsigned long long mem_size_bytes, return -1; } - status_buf[BUF_SIZE]=0; + status_buf[BUF_SIZE-1]=0; VPRINTF("Checking offlined block %d (%s)...", i + reg_start, fname); @@ -814,7 +814,7 @@ static int write_offlined() fclose(off); if (!(off=fopen(offname,"w+"))) { // truncate - EPRINTF("Cannot open %s for writing!\n"); + EPRINTF("Cannot open %s for writing!\n",offname); return -1; }