Skip to content

Commit bede820

Browse files
committed
correct spotted copy/paste errors from older code
1 parent fe75310 commit bede820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nbl/system/ISystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ bool ISystem::isDebuggerAttached()
375375
close(status);
376376

377377
buf[numRead] = '\0';
378-
const auto offset = strstr(buf, tracerPidStr);
378+
const auto offset = strstr(buf, debuggerPidStr);
379379
if (not offset)
380380
return false;
381381

382382
auto isSpace = [](const char c) { return c == ' '; };
383383
auto isDigit = [](const char c) { return c >= '0' && c <= '9'; };
384384

385-
for (const char* cPtr = offset + sizeof(tracerPidStr) - 1; cPtr <= buf + numRead; cPtr++)
385+
for (const char* cPtr = offset + sizeof(debuggerPidStr) - 1; cPtr <= buf + numRead; cPtr++)
386386
{
387387
if (isSpace(*cPtr))
388388
continue;

0 commit comments

Comments
 (0)