From: molivier Date: Wed, 21 Aug 2002 07:49:50 +0000 (+0000) Subject: Fixed COM_StripExtension for strings without a single dot X-Git-Tag: RELEASE_0_2_0_RC1~324 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=265321689409a181fbaf6a44af2627ccd2eef565;p=xonotic%2Fdarkplaces.git Fixed COM_StripExtension for strings without a single dot git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2270 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/common.c b/common.c index ed25c294..40eca10c 100644 --- a/common.c +++ b/common.c @@ -510,6 +510,8 @@ void COM_StripExtension (char *in, char *out) } if (last) *last = 0; + else + *out = 0; } /*