/* -------------------------------------------------------------------------
* pg_dumplo
*
- * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/utils.c,v 1.6 2002/09/05 21:01:16 tgl Exp $
+ * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/utils.c,v 1.7 2003/10/09 13:38:05 momjian Exp $
*
* Karel Zak 1999-2000
* -------------------------------------------------------------------------
index_file(LODumpMaster * pgLO)
{
char path[BUFSIZ];
+ int sz;
if (pgLO->action == ACTION_SHOW)
return;
}
}
- snprintf(path, BUFSIZ, "%s/lo_dump.index", path);
+ sz = strlen(path);
+ strncat(path, "/lo_dump.index", BUFSIZ-sz);
if ((pgLO->index = fopen(path, "w")) == NULL)
{
}
else if (pgLO->action != ACTION_NONE)
{
-
- snprintf(path, BUFSIZ, "%s/lo_dump.index", path);
+ sz = strlen(path);
+ strncat(path, "/lo_dump.index", BUFSIZ-sz);
if ((pgLO->index = fopen(path, "r")) == NULL)
{