mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Rename strNcpy to StrNCpy, and change third parameter.
This commit is contained in:
@@ -48,7 +48,7 @@ fixedlen_like(char *s, struct varlena * p, int charlen)
|
||||
|
||||
/* be sure sterm is null-terminated */
|
||||
sterm = (char *) palloc(charlen + 1);
|
||||
strNcpy(sterm, s, charlen);
|
||||
StrNCpy(sterm, s, charlen+1);
|
||||
|
||||
/*
|
||||
* p is a text = varlena, not a string so we have to make a string
|
||||
@@ -150,7 +150,7 @@ textnlike(struct varlena * s, struct varlena * p)
|
||||
}
|
||||
|
||||
|
||||
/* $Revision: 1.9 $
|
||||
/* $Revision: 1.10 $
|
||||
** "like.c" A first attempt at a LIKE operator for Postgres95.
|
||||
**
|
||||
** Originally written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
|
||||
|
||||
Reference in New Issue
Block a user