diff options
author | Peter Eisentraut | 2014-01-07 02:30:26 +0000 |
---|---|---|
committer | Peter Eisentraut | 2014-01-07 02:30:26 +0000 |
commit | edc43458d797a5956f4bf39af18cf62abb0077db (patch) | |
tree | 4468c5cec42e043168aab94491bb0f2905c1855f /doc/src | |
parent | 10a82cda67731941c18256e009edad4a784a2994 (diff) |
Add more use of psprintf()
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/xtypes.sgml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/src/sgml/xtypes.sgml b/doc/src/sgml/xtypes.sgml index 0154181cc52..e1340baeb73 100644 --- a/doc/src/sgml/xtypes.sgml +++ b/doc/src/sgml/xtypes.sgml @@ -108,8 +108,7 @@ complex_out(PG_FUNCTION_ARGS) Complex *complex = (Complex *) PG_GETARG_POINTER(0); char *result; - result = (char *) palloc(100); - snprintf(result, 100, "(%g,%g)", complex->x, complex->y); + result = psprintf("(%g,%g)", complex->x, complex->y); PG_RETURN_CSTRING(result); } ]]> |