[rst-commit] r169 - in /redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC): message.c message.h

rst-commit at redwax.eu rst-commit at redwax.eu
Mon Jul 1 22:56:27 CEST 2024


Author: minfrin at redwax.eu
Date: Mon Jul  1 22:56:26 2024
New Revision: 169

Log:
Use a reasonable sized fragment on return.

Modified:
    redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.c
    redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.h

Modified: redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.c
==============================================================================
--- redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.c	(original)
+++ redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.c	Mon Jul  1 22:56:26 2024
@@ -231,8 +231,8 @@
 {
     size_t length = instance->out_length - instance->out_offset;
 
-    if (length > 8) {
-        length = 8;
+    if (length > MESSAGE_MAX) {
+        length = MESSAGE_MAX;
     }
 
     /*

Modified: redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.h
==============================================================================
--- redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.h	(original)
+++ redwax-signtext-windows/trunk/Redwax SignText/Redwax SignText (MFC)/message.h	Mon Jul  1 22:56:26 2024
@@ -21,6 +21,8 @@
 #define MESSAGE_H
 
 #include <stdint.h>
+
+#define MESSAGE_MAX 2048
 
 #ifdef __cplusplus
 extern "C" {



More information about the rst-commit mailing list