-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix runtime error in variadic functions that return strings
This fixes a bug where returning a string from a variadic function caused an invalid memory access error during runtime. It seems like they forgot to update existing string return code for variadic functions. See 11) here: http://forum.sa-mp.com/showthread.php?t=355877 --------- test code -------- native print(const s[]); stock f(...) { new a, b, c; new str[] = "hello"; return str; } main() { print(f(1, 2, 3)); } ----- end of test code -----
- Loading branch information
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters