diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/steam.c | 3 | ||||
-rw-r--r-- | src/toast.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/steam.c b/src/steam.c index f28272c..de22787 100644 --- a/src/steam.c +++ b/src/steam.c @@ -239,14 +239,13 @@ long getSteamPID(void) return -1; } -#define STEAM_LAUNCH - int runOpenFortress(char** args, size_t arg_count) { #ifdef STEAM_DIRECT_LAUNCH int in_fork = 0; #if defined(__linux__) || defined(__FreeBSD__) // fork so we don't have to stay alive for the game + if (fork()) return 0; #endif char* game = getSourceSDK2013MpDir(); if (!game) diff --git a/src/toast.c b/src/toast.c index 4c26142..44f8b86 100644 --- a/src/toast.c +++ b/src/toast.c @@ -310,7 +310,7 @@ struct revision_t* getRevisionData(char* url, int rev) { int rev_copy = rev; - while (rev_copy > 10) + while (rev_copy >= 10) { rev_copy /= 10; rev_len++; |