summaryrefslogtreecommitdiff
path: root/src/common/szstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/szstr.h')
-rw-r--r--src/common/szstr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/szstr.h b/src/common/szstr.h
index 0091482..aad1920 100644
--- a/src/common/szstr.h
+++ b/src/common/szstr.h
@@ -37,7 +37,11 @@
/* Structure associant une chaîne et sa taille */
typedef struct _sized_string_t
{
- char *data; /* Chaîne de caractères */
+ union {
+ const char *static_data; /* Données non modifiées */
+ char *data; /* Chaîne de caractères */
+ };
+
size_t len; /* Taille correspondante */
} sized_string_t;