diff options
author | Simon Howard | 2014-04-01 21:49:16 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-01 21:49:16 -0400 |
commit | a9d9335b20a0b708fae1b978f70348aec998356a (patch) | |
tree | 9d775843fddbffaa9babdf54221b0ac98105dc91 /textscreen/txt_spinctrl.h | |
parent | 17c14e1fad6dc277a6e58e4f421d5c65e210d1fe (diff) | |
download | chocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.tar.gz chocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.tar.bz2 chocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.zip |
textscreen: Use safe string functions.
Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of
the m_misc.c versions so that the textscreen library does not need a
dependency on the Doom code, and change all textscreen code to use
these instead of unsafe functions. This fixes #372.
Diffstat (limited to 'textscreen/txt_spinctrl.h')
-rw-r--r-- | textscreen/txt_spinctrl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/textscreen/txt_spinctrl.h b/textscreen/txt_spinctrl.h index 5a815319..006a0471 100644 --- a/textscreen/txt_spinctrl.h +++ b/textscreen/txt_spinctrl.h @@ -53,6 +53,7 @@ struct txt_spincontrol_s union { float f; int i; } min, max, *value, step; int editing; char *buffer; + size_t buffer_len; }; /** |