Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-05-29 14:25:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-29 14:39:51 +0400
commit73452ae588e1cebe44676030fb683c8f7e976dea (patch)
tree73a1cafeb741e8b6dd4ebc951be5a6d1622e3273 /source/blender/blenlib/intern/BLI_dynstr.c
parent4f83d3ec76dfd8b8a025effc1b9615caa310ebfd (diff)
BLI_dynstr: add assert to check curlen is correct
Diffstat (limited to 'source/blender/blenlib/intern/BLI_dynstr.c')
-rw-r--r--source/blender/blenlib/intern/BLI_dynstr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_dynstr.c b/source/blender/blenlib/intern/BLI_dynstr.c
index 4c712a2f237..25607d8b499 100644
--- a/source/blender/blenlib/intern/BLI_dynstr.c
+++ b/source/blender/blenlib/intern/BLI_dynstr.c
@@ -34,6 +34,7 @@
#include <string.h>
#include "MEM_guardedalloc.h"
+#include "BLI_utildefines.h"
#include "BLI_string.h"
#include "BLI_dynstr.h"
@@ -237,6 +238,7 @@ void BLI_dynstr_get_cstring_ex(DynStr *ds, char *rets)
s += slen;
}
+ BLI_assert((s - rets) == ds->curlen);
rets[ds->curlen] = '\0';
}