]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
rewrote Cmd_StuffCmds_f (commandline parser), it now properly handles quoted strings...
[xonotic/darkplaces.git] / prvm_cmds.c
index 67cd6f9af97bbfe018e211cd9168c2708cf1a9c6..4991e6ed75728b910f2f9e4daa177732724ca8b5 100644 (file)
@@ -1826,7 +1826,7 @@ void VM_fgets(void)
                c = FS_Getc(VM_FILES[filenum]);
        if (developer.integer)
                Con_Printf("fgets: %s: %s\n", PRVM_NAME, string);
-       if (c >= 0)
+       if (c >= 0 || end)
                PRVM_G_INT(OFS_RETURN) = PRVM_SetString(string);
        else
                PRVM_G_INT(OFS_RETURN) = 0;