5e3828d
@@ -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");
@@ -43,7 +43,7 @@
char temp_file[sizeof(TEMPLATE)];
- strncpy(temp_file, TEMPLATE, sizeof(TEMPLATE));
+ strncpy(temp_file, TEMPLATE, sizeof(tempfile));
fd = mkstemp(temp_file);
Pull-Request has been closed by leitao