projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add stddef.h include for offsetof
[babeltrace.git]
/
types
/
string.c
diff --git
a/types/string.c
b/types/string.c
index df9bacac43260257d832c68ffd805f4e325bcf7c..3f9c1787f3c942e165c8e1284bdd1633862a54ba 100644
(file)
--- a/
types/string.c
+++ b/
types/string.c
@@
-32,7
+32,11
@@
void string_copy(struct stream_pos *dest, const struct format *fdest,
if (fsrc->string_copy == fdest->string_copy) {
fsrc->string_copy(dest, src, string_class);
} else {
if (fsrc->string_copy == fdest->string_copy) {
fsrc->string_copy(dest, src, string_class);
} else {
- /* TODO */
+ unsigned char *tmp = NULL;
+
+ fsrc->string_read(&tmp, src, string_class);
+ fdest->string_write(dest, tmp, string_class);
+ fsrc->string_free_temp(tmp);
}
}
}
}
This page took
0.025273 seconds
and
4
git commands to generate.