diff --git a/src/detection/cpu/cpu_nbsd.c b/src/detection/cpu/cpu_nbsd.c index 17ce880df..c850766da 100644 --- a/src/detection/cpu/cpu_nbsd.c +++ b/src/detection/cpu/cpu_nbsd.c @@ -48,7 +48,8 @@ const char* ffDetectCPUImpl(const FFCPUOptions* options, FFCPUResult* cpu) return "sysctlbyname(machdep.cpu_brand) failed"; } - ffSysctlGetString("machdep.dmi.processor-vendor", &cpu->vendor); + if (ffSysctlGetString("machdep.dmi.processor-vendor", &cpu->vendor) == NULL) + ffStrbufTrimRightSpace(&cpu->vendor); cpu->coresPhysical = (uint16_t) ffSysctlGetInt("hw.ncpu", 1); cpu->coresLogical = cpu->coresPhysical;