diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-23 18:02:39 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-23 18:02:39 +0000 |
commit | 410eb9e1ebe2b7aa58361688d3ddff7a20986b60 (patch) | |
tree | 8a59bab1b0e88a502472e4f886c43594c6a6918b /src/gui/shop.h | |
parent | 7cb96f988780293861fd81aa1e45fb4506aa2564 (diff) | |
download | mana-410eb9e1ebe2b7aa58361688d3ddff7a20986b60.tar.gz mana-410eb9e1ebe2b7aa58361688d3ddff7a20986b60.tar.bz2 mana-410eb9e1ebe2b7aa58361688d3ddff7a20986b60.tar.xz mana-410eb9e1ebe2b7aa58361688d3ddff7a20986b60.zip |
Avoid possible buffer overflows in shop items' names. BuyDialog code cleanup.
Diffstat (limited to 'src/gui/shop.h')
-rw-r--r-- | src/gui/shop.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/shop.h b/src/gui/shop.h index f2f31a19..4589e01a 100644 --- a/src/gui/shop.h +++ b/src/gui/shop.h @@ -24,8 +24,10 @@ #ifndef _SHOP_H #define _SHOP_H +#include <iosfwd> + struct ITEM_SHOP { - char name[30]; + std::string name; int price; short id; int index; |