diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-14 13:01:16 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-14 13:01:16 +0000 |
commit | 5ff59921219b54bac1608debc0c53118e539ba57 (patch) | |
tree | 6abbf5b356bca6ba6df2f32443503959bf341f7b /src/namestore/namestore_api.c | |
parent | f8676628e5fb812d68e1468dbc6d115dc641ffbf (diff) | |
download | gnunet-5ff59921219b54bac1608debc0c53118e539ba57.tar.gz gnunet-5ff59921219b54bac1608debc0c53118e539ba57.zip |
- fix
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r-- | src/namestore/namestore_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 2a70d7612..316b0f40d 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -477,7 +477,8 @@ handle_zone_to_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe, | |||
477 | expire = GNUNET_TIME_absolute_ntoh(msg->expire); | 477 | expire = GNUNET_TIME_absolute_ntoh(msg->expire); |
478 | 478 | ||
479 | name_tmp = (char *) &msg[1]; | 479 | name_tmp = (char *) &msg[1]; |
480 | GNUNET_assert ('\0' == name_tmp[name_len]); | 480 | GNUNET_assert ('\0' == name_tmp[name_len -1]); |
481 | GNUNET_assert (name_len -1 == strlen(name_tmp)); | ||
481 | rd_tmp = &name_tmp[name_len]; | 482 | rd_tmp = &name_tmp[name_len]; |
482 | 483 | ||
483 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 484 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; |