]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Fix potential issue in d_string
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Mon, 31 Dec 2018 02:26:22 +0000 (21:26 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Mon, 31 Dec 2018 02:26:22 +0000 (21:26 -0500)
Sources/libMultiMarkdown/include/d_string.h

index b2873a2db8e3fc346286ebf2eac9afeb7271a8a5..894145deb77932149c94aa0ef0f0131c6dae38af 100644 (file)
@@ -148,6 +148,15 @@ void d_string_insert_c(
 );
 
 
+/// Insert array of characters inside dynamic string
+void d_string_insert_c_array(
+       DString * baseString,                   //!< DString to be appended
+       size_t pos,                             //!< Offset at which to insert string
+       const char * insertedString,            //!< String to be inserted
+       size_t bytes                            //!< Number of bytes to insert
+);
+
+
 /// Insert inside dynamic string using format specifier
 void d_string_insert_printf(
        DString * baseString,                   //!< DString to be appended
@@ -164,6 +173,7 @@ void d_string_erase(
        size_t len                              //!< Character to append
 );
 
+
 /// Copy a portion of dynamic string
 char * d_string_copy_substring(
        DString * d,                            //!< DString to copy
@@ -171,6 +181,7 @@ char * d_string_copy_substring(
        size_t len                              //!< How many characters(bytes) to copy
 );
 
+
 /// Replace occurences of "original" with "replace" inside the specified range
 /// Returns the change in overall length
 long d_string_replace_text_in_range(