]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
another int cast for that patch
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Feb 2006 05:47:53 +0000 (05:47 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Feb 2006 05:47:53 +0000 (05:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6012 d7cf8633-e32d-0410-b094-e92efae38249

sys_linux.c
sys_sdl.c

index d0120432b6f745981916d8416bb817dd8e4ff829..1edb74ddcf42ed8421f6eb18dfda882372626fab 100644 (file)
@@ -59,7 +59,7 @@ void Sys_PrintToTerminal(const char *text)
 #endif
        while(*text)
        {
-               int written = (int)write(1, text, strlen(text));
+               int written = (int)write(1, text, (int)strlen(text));
                if(written <= 0)
                        break; // sorry, I cannot do anything about this error - without an output
                text += written;
index d18b4b6e18d24dafe8226647e967827d19a2e559..be0f67df3a1f7f2d3f8000afa03cd8a16ec97589 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -57,7 +57,7 @@ void Sys_PrintToTerminal(const char *text)
 #endif
        while(*text)
        {
-               int written = (int)write(1, text, strlen(text));
+               int written = (int)write(1, text, (int)strlen(text));
                if(written <= 0)
                        break; // sorry, I cannot do anything about this error - without an output
                text += written;