mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.58 2009/05/20 16:49:23 meskes Exp $ */
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.59 2009/06/11 14:49:13 momjian Exp $ */
|
||||
|
||||
#define POSTGRES_ECPG_INTERNAL
|
||||
#include "postgres_fe.h"
|
||||
@ -151,7 +151,7 @@ static char *
|
||||
ecpg_strndup(const char *str, size_t len)
|
||||
{
|
||||
int real_len = strlen(str);
|
||||
int use_len = (real_len > len) ? (int)len : real_len;
|
||||
int use_len = (real_len > len) ? (int) len : real_len;
|
||||
|
||||
char *new = malloc(use_len + 1);
|
||||
|
||||
|
Reference in New Issue
Block a user