#4 Fix GCC8 break
Closed 6 years ago by leitao. Opened 6 years ago by leitao.
https://github.com/leitao/libaio.git pr2  into  master

harness: Fix strncpy argument
Breno Leitao • 6 years ago  
harness/cases/19.t
file modified
+1 -1
@@ -41,7 +41,7 @@

  	int fd;

  	char template[sizeof(TEMPLATE)];

  

- 	strncpy(template, TEMPLATE, sizeof(TEMPLATE));

+ 	strncpy(template, TEMPLATE, sizeof(template));

  	fd = mkostemp(template, O_DIRECT);

  	if (fd < 0) {

  		perror("mkstemp");

harness/cases/21.t
file modified
+1 -1
@@ -43,7 +43,7 @@

  	int fd;

  	char temp_file[sizeof(TEMPLATE)];

  

- 	strncpy(temp_file, TEMPLATE, sizeof(TEMPLATE));

+ 	strncpy(temp_file, TEMPLATE, sizeof(tempfile));

  	fd = mkstemp(temp_file);

  	if (fd < 0) {

  		perror("mkstemp");

no initial comment

Pull-Request has been closed by leitao

6 years ago
Metadata