From 1724ae7c21a6840a402a685ceea7f3366788a516 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Jan 2022 11:53:01 +0100 Subject: Make dev_name_t also use const_dev_name_t to avoid forcing the caller to respect the definite string size. --- utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.c b/utils.c index 505f434..5111e73 100644 --- a/utils.c +++ b/utils.c @@ -29,6 +29,7 @@ #include "write.h" #include "utils.h" #include "global.h" +#include "cpu.h" void WriteImport(FILE *file, const_string_t filename) @@ -160,6 +161,7 @@ UserVarQualifier(const argument_t *arg) return ""; if (arg->argType->itIndefinite || + arg->argType->itInName == MACH_MSG_TYPE_STRING_C || !strcmp(arg->argType->itUserType, "string_t")) /* This is a pointer, so we have to use the const_foo type to make const qualify the data, not the pointer. -- cgit v1.2.3