a581250db8
Take maintainer with permission. Ok sthen@ landry@
19 lines
982 B
Plaintext
19 lines
982 B
Plaintext
$OpenBSD: patch-lib_ratStdMessage_c,v 1.3 2012/08/22 05:17:33 stu Exp $
|
|
--- lib/ratStdMessage.c.orig Mon Feb 4 15:35:10 2002
|
|
+++ lib/ratStdMessage.c Wed May 2 23:41:44 2012
|
|
@@ -435,10 +435,10 @@ Std_MakeChildrenProc(Tcl_Interp *interp, BodyInfo *bod
|
|
partInfoPtr->msgPtr = bodyInfoPtr->msgPtr;
|
|
partInfoPtr->clientData = (ClientData)partStdInfoPtr;
|
|
if (stdBodyInfoPtr->section) {
|
|
- size = strlen(stdBodyInfoPtr->section) + 8;
|
|
- partStdInfoPtr->section = (char*)ckalloc(size);
|
|
- snprintf(partStdInfoPtr->section, size, "%s.%d",
|
|
- stdBodyInfoPtr->section, index++);
|
|
+ size_t section_len = strlen(stdBodyInfoPtr->section)+8;
|
|
+ partStdInfoPtr->section = (char*)ckalloc(section_len);
|
|
+ snprintf(partStdInfoPtr->section, section_len, "%s.%d",
|
|
+ stdBodyInfoPtr->section, index++);
|
|
} else {
|
|
partStdInfoPtr->section = (char*)ckalloc(8);
|
|
sprintf(partStdInfoPtr->section, "%d", index++);
|