From d8eeb74737d73a55db8e0294333789af850d63d7 Mon Sep 17 00:00:00 2001 From: molivier Date: Thu, 14 May 2009 18:39:25 +0000 Subject: [PATCH] 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 --- prvm_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2