diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-04-19 19:25:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-04-19 19:25:04 (GMT) |
commit | c177597d6da5dedb32aa176e8370db8ffb7f87aa (patch) | |
tree | 26f7eb2702ba4aa3dfd7267d74fe78ad79791a8c /src/analysis/db/cdb.c | |
parent | 35f37c72e9d81e478395914da6c10b3c546761a7 (diff) |
Handled static strings as well as dynamic strings in comments.
Diffstat (limited to 'src/analysis/db/cdb.c')
-rw-r--r-- | src/analysis/db/cdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/db/cdb.c b/src/analysis/db/cdb.c index 49662e8..78f2aa8 100644 --- a/src/analysis/db/cdb.c +++ b/src/analysis/db/cdb.c @@ -287,7 +287,7 @@ GCdbArchive *g_cdb_archive_new(const char *basedir, const rle_string *hash, cons result = g_object_new(G_TYPE_CDB_ARCHIVE, NULL); - dup_rle_string(&result->hash, hash); + dup_into_rle_string(&result->hash, get_rle_string(hash)); /* Chemin de l'archive */ @@ -1061,7 +1061,7 @@ DBError g_cdb_archive_add_client(GCdbArchive *archive, int fd, const rle_string archive->clients = (cdb_client *)realloc(archive->clients, ++archive->count * sizeof(cdb_client)); archive->clients[archive->count - 1].fd = fd; - dup_rle_string(&archive->clients[archive->count - 1].user, user); + dup_into_rle_string(&archive->clients[archive->count - 1].user, get_rle_string(user)); /* Démarrage ou redémarrage du processus d'écoute */ |