diff --git a/src/libtools/myalign.c b/src/libtools/myalign.c index 1db7c958b3..8291c5e74f 100644 --- a/src/libtools/myalign.c +++ b/src/libtools/myalign.c @@ -235,7 +235,7 @@ void myStackAlignScanf(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* m case '#': case '+': case '-': ++p; break; // formating, ignored - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'n': case 'p': case 'S': @@ -493,7 +493,7 @@ void myStackAlignScanfW(x64emu_t* emu, const char* fmt, uint64_t* st, uint64_t* case '#': case '+': case '-': ++p; break; // formating, ignored - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'n': case 'p': case 'S': @@ -1050,7 +1050,7 @@ void myStackAlignScanfValist(x64emu_t* emu, const char* fmt, uint64_t* mystack, case '#': case '+': case '-': ++p; break; // formating, ignored - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'n': case 'p': case 'S': @@ -1157,7 +1157,7 @@ void myStackAlignScanfWValist(x64emu_t* emu, const char* fmt, uint64_t* mystack, case '.': case '+': case '-': ++p; break; // formating, ignored - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'n': case 'p': case 'S': diff --git a/src/libtools/myalign32.c b/src/libtools/myalign32.c index 2e26a855f2..8afb321b3f 100755 --- a/src/libtools/myalign32.c +++ b/src/libtools/myalign32.c @@ -217,7 +217,7 @@ size_t myStackAlignScanf32(const char* fmt, uint32_t* st, uint64_t* mystack, siz case '+': case '-': ++p; break; // formating, ignored case '[': state += 60; ++p; break; - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'p': state = 30; break; // pointers case 'S': case 's': state = 50; break; // string @@ -352,7 +352,7 @@ void myStackAlignScanf32_final(const char* fmt, uint32_t* st, uint64_t* mystack, case '+': case '-': ++p; break; // formating, ignored case '[': state += 60; ++p; break; - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'p': state = 30; break; // pointers case 'S': case 's': state = 50; break; // strings @@ -495,7 +495,7 @@ size_t myStackAlignScanfW32(const char* fmt, uint32_t* st, uint64_t* mystack, si case '#': case '+': case '-': ++p; break; // formating, ignored - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'p': state = 30; break; // pointers case 'S': case 's': state = 50; break; // strings @@ -622,7 +622,7 @@ void myStackAlignScanfW32_final(const char* fmt, uint32_t* st, uint64_t* mystack case '#': case '+': case '-': ++p; break; // formating, ignored - case 'm': state = 0; ++p; break; // no argument + case 'm': ++p; break; // modifier: does not consume an argument itself case 'p': state = 30; break; // pointers case 'S': case 's': state = 50; break; // string