wok-current diff syslinux/stuff/iso2exe/win32.c @ rev 23787
updated yaml and yaml-dev (0.2.2 -> 0.2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 22 07:12:48 2020 +0100 (2020-05-22) |
parents | addb674a634f |
children | 7744355508b9 |
line diff
1.1 --- a/syslinux/stuff/iso2exe/win32.c Mon May 13 09:46:40 2019 +0200 1.2 +++ b/syslinux/stuff/iso2exe/win32.c Fri May 22 07:12:48 2020 +0100 1.3 @@ -167,7 +167,7 @@ 1.4 const char pifFileName[] = "slitaz.pif"; 1.5 1.6 strcpy(PIF_content.s0.program_filename, isoFileName); 1.7 - fd = open(pifFileName, O_WRONLY|O_BINARY|O_CREAT,0555); 1.8 + fd = open(pifFileName, O_WRONLY|O_BINARY|O_CREAT|O_TRUNC,0555); 1.9 write(fd,&PIF_content,sizeof(PIF_content)); 1.10 close(fd); 1.11 WinExec(pifFileName, SW_MINIMIZE);