diff options
| author | Peter Eisentraut | 2006-09-04 14:57:27 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2006-09-04 14:57:27 +0000 |
| commit | c8041474ee1b9e75449c036aee7dac7f04557eec (patch) | |
| tree | d3a0bd903952f90255b472bd580180a83a0f7b62 /src/interfaces | |
| parent | 70bc947dc9e5996c80d8f1e82841ca913f39a0bb (diff) | |
Add missing gettext calls for some SSL errors.
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/libpq/fe-secure.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index 26c21ce0636..91315e37904 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.85 2006/07/14 16:59:19 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.86 2006/09/04 14:57:27 petere Exp $ * * NOTES * [ Most of these notes are wrong/obsolete, but perhaps not all ] @@ -1000,7 +1000,7 @@ close_SSL(PGconn *conn) * return NULL if it doesn't recognize the error code. We don't * want to return NULL ever. */ -static char ssl_nomem[] = "Out of memory allocating error description"; +static char ssl_nomem[] = "out of memory allocating error description"; #define SSL_ERR_LEN 128 @@ -1017,7 +1017,7 @@ SSLerrmessage(void) errcode = ERR_get_error(); if (errcode == 0) { - strcpy(errbuf, "No SSL error reported"); + snprintf(errbuf, SSL_ERR_LEN, libpq_gettext("no SSL error reported")); return errbuf; } errreason = ERR_reason_error_string(errcode); @@ -1027,7 +1027,7 @@ SSLerrmessage(void) errbuf[SSL_ERR_LEN - 1] = '\0'; return errbuf; } - snprintf(errbuf, SSL_ERR_LEN, "SSL error code %lu", errcode); + snprintf(errbuf, SSL_ERR_LEN, libpq_gettext("SSL error code %lu"), errcode); return errbuf; } |
