Skip to content

Commit c395126

Browse files
committed
Return allocated buffer
1 parent 66476c7 commit c395126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fetch_hal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "config.h"
2222
#include "fetch_hal.h"
23+
#include "support.h"
2324

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

0 commit comments

Comments
 (0)