From: havoc Date: Fri, 4 Feb 2005 10:19:50 +0000 (+0000) Subject: fixed r_editlights_edit cubemap (it was calling strlcpy with the wrong length limit) X-Git-Tag: xonotic-v0.1.0preview~5163 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e28a6f11ed55db35fb0ea028567d47096c155320;p=xonotic%2Fdarkplaces.git fixed r_editlights_edit cubemap (it was calling strlcpy with the wrong length limit) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4998 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index fba2ad39..31615386 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -3044,7 +3044,7 @@ void R_Shadow_UpdateWorldLight(dlight_t *light, vec3_t origin, vec3_t angles, ve light->corona = corona; if (!cubemapname) cubemapname = ""; - strlcpy(light->cubemapname, cubemapname, strlen(light->cubemapname)); + strlcpy(light->cubemapname, cubemapname, sizeof(light->cubemapname)); light->coronasizescale = coronasizescale; light->ambientscale = ambientscale; light->diffusescale = diffusescale;