diff options
author | David Bremner <bremner@debian.org> | 2012-12-16 23:14:42 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-12-30 21:12:11 -0400 |
commit | e40bb1561a6036fcc6a8ff3510dc5061a0ea31e8 (patch) | |
tree | 35e7f2ac001606b1b498153872b844fb1cb723b1 /notmuch-restore.c | |
parent | 0cfb8a24dc025335643a5cfa344c62e5584fb477 (diff) |
notmuch-restore: use debug version of talloc_strndup
This gives line numbers for better debugging.
Diffstat (limited to 'notmuch-restore.c')
-rw-r--r-- | notmuch-restore.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/notmuch-restore.c b/notmuch-restore.c index 9ed9b515..d43546d3 100644 --- a/notmuch-restore.c +++ b/notmuch-restore.c @@ -88,10 +88,11 @@ parse_sup_line (void *ctx, char *line, return 1; } - *query_str = talloc_strndup (ctx, line + match[1].rm_so, - match[1].rm_eo - match[1].rm_so); - file_tags = talloc_strndup (ctx, line + match[2].rm_so, - match[2].rm_eo - match[2].rm_so); + *query_str = talloc_strndup_debug (ctx, line + match[1].rm_so, + match[1].rm_eo - match[1].rm_so); + + file_tags = talloc_strndup_debug (ctx, line + match[2].rm_so, + match[2].rm_eo - match[2].rm_so); char *tok = file_tags; size_t tok_len = 0; |