From: molivier Date: Thu, 14 May 2009 18:39:25 +0000 (+0000) Subject: Fixed a invalid use of the sizeof() operator. Thanks to OpenBSD's custom GCC for... X-Git-Tag: xonotic-v0.1.0preview~1657 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8eeb74737d73a55db8e0294333789af850d63d7;p=xonotic%2Fdarkplaces.git Fixed a invalid use of the sizeof() operator. Thanks to OpenBSD's custom GCC for the warning. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8961 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_exec.c b/prvm_exec.c index 624a797a..55a91d92 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -276,7 +276,7 @@ void PRVM_ShortStackTrace(char *buf, size_t bufsize) } else { - strlcpy(buf, "", sizeof(buf)); + strlcpy(buf, "", bufsize); return; }