mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.15 1997/08/03 02:36:22 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.16 1997/08/12 20:15:48 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -167,8 +167,7 @@ mdunlink(Relation reln)
|
||||
** to do this.
|
||||
*/
|
||||
|
||||
strncpy(fname, RelationGetRelationName(reln)->data, NAMEDATALEN);
|
||||
fname[NAMEDATALEN-1] = '\0';
|
||||
strNcpy(fname, RelationGetRelationName(reln)->data, NAMEDATALEN-1);
|
||||
|
||||
if (FileNameUnlink(fname) < 0)
|
||||
return (SM_FAIL);
|
||||
|
||||
Reference in New Issue
Block a user