diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-30 11:44:20 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-30 11:44:20 +0200 |
| commit | e8ed41c76330ba837b5a27314cb038ed3bdbfc6b (patch) | |
| tree | bf3003263f087dc638a3afd2b2ebc42f6f510739 /src | |
| parent | d9cd0604cc3fb5551082e3bb3491bdcf5e4c1625 (diff) | |
| download | box64-e8ed41c76330ba837b5a27314cb038ed3bdbfc6b.tar.gz box64-e8ed41c76330ba837b5a27314cb038ed3bdbfc6b.zip | |
Improve support of MyAlign for printf type (for #356)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/libtools/myalign.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libtools/myalign.c b/src/libtools/myalign.c index 51fcd503..12eae94c 100755 --- a/src/libtools/myalign.c +++ b/src/libtools/myalign.c @@ -74,6 +74,7 @@ void myStackAlign(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* mystac case '8': case '9': case '.': + case '#': case '+': case '-': ++p; break; // formating, ignored case 'm': state = 0; ++p; break; // no argument @@ -213,6 +214,7 @@ void myStackAlignScanf(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* m case '8': case '9': case '.': + case '#': case '+': case '-': ++p; break; // formating, ignored case 'm': state = 0; ++p; break; // no argument @@ -315,6 +317,7 @@ void myStackAlignW(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* mysta case '8': case '9': case '.': + case '#': case '+': case '-': ++p; break; // formating, ignored case 'm': state = 0; ++p; break; // no argument @@ -454,6 +457,7 @@ void myStackAlignScanfW(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* case '8': case '9': case '.': + case '#': case '+': case '-': ++p; break; // formating, ignored case 'm': state = 0; ++p; break; // no argument |