Fix type free memleak
[babeltrace.git] / formats / ctf / types / string.c
index 578388d15936065a242d3a4e0b30e6be09072c2d..9cfd0a094e723800c6301e16473227009642f01b 100644 (file)
@@ -20,7 +20,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <ctf/ctf-types.h>
+#include <babeltrace/ctf/types.h>
+#include <limits.h>            /* C99 limits */
 #include <string.h>
 
 size_t string_copy(char *dest, const char *src)
@@ -31,5 +32,5 @@ size_t string_copy(char *dest, const char *src)
                goto end;
        strcpy(dest, src);
 end:
-       return len * 8;
+       return len * CHAR_BIT;
 }
This page took 0.02815 seconds and 4 git commands to generate.