String type: complete migration to bitwise position
[babeltrace.git] / types / string.c
index df9bacac43260257d832c68ffd805f4e325bcf7c..3f9c1787f3c942e165c8e1284bdd1633862a54ba 100644 (file)
@@ -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 {
-               /* 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.022866 seconds and 4 git commands to generate.