aboutsummaryrefslogtreecommitdiff
path: root/contrib/isc-dhcp/omapip/result.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/isc-dhcp/omapip/result.c')
-rw-r--r--contrib/isc-dhcp/omapip/result.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/isc-dhcp/omapip/result.c b/contrib/isc-dhcp/omapip/result.c
index 8e6695ef9d45..9a1796c4e00e 100644
--- a/contrib/isc-dhcp/omapip/result.c
+++ b/contrib/isc-dhcp/omapip/result.c
@@ -119,7 +119,10 @@ static const char *text[ISC_R_NRESULTS] = {
const char *isc_result_totext (isc_result_t result)
{
+ static char ebuf[40];
+
if (result >= ISC_R_SUCCESS && result < ISC_R_NRESULTS)
return text [result];
- return "unknown error.";
+ sprintf(ebuf, "unknown error: %d", result);
+ return ebuf;
}