Use our StrDup function.

This commit is contained in:
Dianne Skoll
2025-10-18 14:23:14 -04:00
parent 3fc57fb76e
commit f5dbba3864
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ InsertDedupeEntry(int trigger_date, int trigger_time, char const *body)
}
e->trigger_date = trigger_date;
e->trigger_time = trigger_time;
e->body = strdup(body);
e->body = StrDup(body);
if (!e->body) {
free(e);
return;

View File

@@ -159,7 +159,7 @@ void SetCurrentFilename(char const *fname)
fprintf(ErrFp, "Out of Memory!\n");
exit(1);
}
e->fname = strdup(fname);
e->fname = StrDup(fname);
if (!e->fname) {
fprintf(ErrFp, "Out of Memory!\n");
exit(1);