Skip to content

Commit

Permalink
Return allocated buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Mar 16, 2024
1 parent 66476c7 commit c395126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fetch_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "config.h"
#include "fetch_hal.h"
#include "support.h"

/*
* Fetch response from the dummy HAL 9000 API.
Expand All @@ -31,5 +32,5 @@
char *
fetch_hal(config_t *config, const char *prompt, int history_length)
{
return "# I'm sorry, Dave. I'm afraid I can't do that.";
return safe_strdup("# I'm sorry, Dave. I'm afraid I can't do that.");
}

0 comments on commit c395126

Please sign in to comment.