]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fixed a invalid use of the sizeof() operator. Thanks to OpenBSD's custom GCC for...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 14 May 2009 18:39:25 +0000 (18:39 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 14 May 2009 18:39:25 +0000 (18:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8961 d7cf8633-e32d-0410-b094-e92efae38249

prvm_exec.c

index 624a797a5e7f19e69759ed267f011154638011b8..55a91d92d9438d148fe6312b951aa5181bfd7a86 100644 (file)
@@ -276,7 +276,7 @@ void PRVM_ShortStackTrace(char *buf, size_t bufsize)
        }
        else
        {
-               strlcpy(buf, "<NO PROG>", sizeof(buf));
+               strlcpy(buf, "<NO PROG>", bufsize);
                return;
        }