-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with a few function call in one line
- Loading branch information
ReKreker
authored and
ReKreker
committed
Oct 16, 2022
1 parent
b861098
commit 809c5f6
Showing
7 changed files
with
28 additions
and
22 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#### Multiple calls the same func at one line | ||
```│translation.c:7:51: error: duplicate label ‘func_name_jmp_10’``` | ||
#### Dont use stack-based strings | ||
Wrap any string in \_s macro to create stack-based strings with no xref to strings' segment. | ||
|
||
How to fix: | ||
```printf(_s("Leet is %d\n"), arg1*100+arg2/100); printf(_s("Trigger error"));``` | ||
``` | ||
printf("Hello, world!"); | ||
``` | ||
to | ||
``` | ||
printf(_s("Leet is %d\n"), arg1*100+arg2/100); | ||
printf(_s("Test")); | ||
printf(_s("Hello, world!")); | ||
``` |
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
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