Browse Source

* chg imdb_t->path from pointer to buffer

master
Alex 'AdUser' Z 8 years ago
parent
commit
ebb727f186
  1. 2
      src/database.c
  2. 2
      src/database.h

2
src/database.c

@ -85,7 +85,7 @@ int imdb_open(imdb_db_t *db, const char *path, int write)
return -1;
}
db->write = write;
db->path = path;
strncpy(db->path, path, sizeof(db->path));
DB_READ(db, buf, IMDB_REC_LEN, 0);

2
src/database.h

@ -7,7 +7,7 @@
typedef struct {
int fd;
int write;
const char *path;
char path[PATH_MAX];
const char *errstr;
unsigned char caps[8];
} imdb_db_t;

Loading…
Cancel
Save