Skip to content

Commit

Permalink
Correction for PR #1484
Browse files Browse the repository at this point in the history
  • Loading branch information
icraggs committed Dec 31, 2024
1 parent bb0d65d commit 5de6b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Heap.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2023 IBM Corp.
* Copyright (c) 2009, 2024 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down Expand Up @@ -349,13 +349,13 @@ void *myrealloc(char* file, int line, void* p, size_t size)
*(eyecatcherType*)(s->ptr) = eyecatcher; /* start eyecatcher */
*(eyecatcherType*)(((char*)(s->ptr)) + (sizeof(eyecatcherType) + size)) = eyecatcher; /* end eyecatcher */
s->size = size;
space -= strlen(s->file);
newPtr = realloc(s->file, filenamelen);
if (newPtr == NULL)
{
Log(LOG_ERROR, 13, errmsg);
goto exit;
}
space -= strlen(s->file);
s->file = newPtr;
space += filenamelen;
strcpy(s->file, file);
Expand Down

0 comments on commit 5de6b01

Please sign in to comment.