diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-20 16:23:47 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-20 16:23:47 -0400 |
commit | 985f8904c132bc258df18a82941d93d4470c6b5e (patch) | |
tree | f00e6424bf138ee7c1ac68808813d4685ccffab9 /bootstrap_cmds/migcom.tproj/server.c | |
parent | 861289845fcf7dbe9b289d9695fe6808ff13be2b (diff) | |
download | apple_cmds-985f8904c132bc258df18a82941d93d4470c6b5e.tar.gz apple_cmds-985f8904c132bc258df18a82941d93d4470c6b5e.tar.zst apple_cmds-985f8904c132bc258df18a82941d93d4470c6b5e.zip |
bootstrap_cmds: Update to 121.100.1
Diffstat (limited to 'bootstrap_cmds/migcom.tproj/server.c')
-rw-r--r-- | bootstrap_cmds/migcom.tproj/server.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bootstrap_cmds/migcom.tproj/server.c b/bootstrap_cmds/migcom.tproj/server.c index 7bbed53..5b22b46 100644 --- a/bootstrap_cmds/migcom.tproj/server.c +++ b/bootstrap_cmds/migcom.tproj/server.c @@ -921,6 +921,8 @@ static void WriteCheckMsgSize(FILE *file, argument_t *arg) { routine_t *rt = arg->argRoutine; + ipc_type_t *it = arg->argType; + ipc_type_t *btype = it->itElement; if (arg->argCount && !arg->argSameCount) WriteRequestNDRConvertIntRepOneArgUse(file, arg->argCount); @@ -928,7 +930,8 @@ WriteCheckMsgSize(FILE *file, argument_t *arg) fprintf(file, "#if\t__MigTypeCheck\n"); /* verify that the user-code-provided count does not exceed the maximum count allowed by the type. */ - fprintf(file, "\t" "if ( In%dP->%s > %d )\n", arg->argCount->argRequestPos, arg->argCount->argMsgField, arg->argType->itNumber); + fprintf(file, "\t" "if ( In%dP->%s > %d )\n", arg->argCount->argRequestPos, + arg->argCount->argMsgField, it->itNumber/btype->itNumber); fputs("\t\t" "return MIG_BAD_ARGUMENTS;\n", file); /* ...end... */ @@ -955,7 +958,8 @@ WriteCheckMsgSize(FILE *file, argument_t *arg) fprintf(file, "#if\t__MigTypeCheck\n"); /* verify that the user-code-provided count does not exceed the maximum count allowed by the type. */ - fprintf(file, "\t" "if ( In%dP->%s > %d )\n", arg->argCount->argRequestPos, arg->argCount->argMsgField, arg->argType->itNumber); + fprintf(file, "\t" "if ( In%dP->%s > %d )\n", arg->argCount->argRequestPos, + arg->argCount->argMsgField, it->itNumber/btype->itNumber); fputs("\t\t" "return MIG_BAD_ARGUMENTS;\n", file); /* ...end... */ |