summaryrefslogtreecommitdiff
path: root/dynstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'dynstr.h')
-rw-r--r--dynstr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dynstr.h b/dynstr.h
index 5ae1bc9..302902d 100644
--- a/dynstr.h
+++ b/dynstr.h
@@ -130,10 +130,10 @@ Dynstr *dynstr_cat_many(Dynstr *dynstr, ...);
int dynstr_byte_at(Dynstr *dynstr, size_t offset);
/* Copy contents of a dynamic string into a memory area. If the offset or
- * size extends past the end of the string, the copy is silently truncated
- * to include only as much as actually exists in the string. The rest of the
- * output memory area will be filled with garbage. Return number of bytes
- * actually copied, which may be less than requested, and may be zero. */
+ * size extends past the end of the string, only as much as actually exists
+ * in the string is actually copied. The rest of the output memory area will
+ * be filled with garbage. Return number of bytes actually copied, which may
+ * be less than requested, and may be zero. */
size_t dynstr_memcpy(void *mem, Dynstr *dynstr, size_t offset, size_t size);
/* Create a dynamically allocated C string copy of the dynamic string.