~ chicken-core (chicken-5) 35c4952a1c680b319f4bc448bf4598370f5a7b30


commit 35c4952a1c680b319f4bc448bf4598370f5a7b30
Author:     Peter Bex <peter@more-magic.net>
AuthorDate: Sun Jun 4 14:49:36 2017 +0200
Commit:     Peter Bex <peter@more-magic.net>
CommitDate: Sun Jun 4 14:54:05 2017 +0200

    Fix formatting specifier for Windows OS major, minor, build versions
    
    They're prefixed with "dw", in Hungarian notation, so they're
    unsigned long integers.

diff --git a/posixwin.scm b/posixwin.scm
index 42435620..466aa8da 100644
--- a/posixwin.scm
+++ b/posixwin.scm
@@ -357,7 +357,7 @@ sysinfo()
 	if (get_hostname() && GetVersionEx(&ovf))
 	{
 	    SYSTEM_INFO si;
-	    _snprintf(C_osver, sizeof(C_osver) - 1, "%d.%d.%d",
+	    _snprintf(C_osver, sizeof(C_osver) - 1, "%lu.%lu.%lu",
 			ovf.dwMajorVersion, ovf.dwMinorVersion, ovf.dwBuildNumber);
 	    strncpy(C_osrel, "Win", sizeof(C_osrel) - 1);
 	    switch (ovf.dwPlatformId)
Trap