summaryrefslogtreecommitdiff
path: root/src/gui/shop.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-23 18:02:39 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-23 18:02:39 +0000
commit410eb9e1ebe2b7aa58361688d3ddff7a20986b60 (patch)
tree8a59bab1b0e88a502472e4f886c43594c6a6918b /src/gui/shop.h
parent7cb96f988780293861fd81aa1e45fb4506aa2564 (diff)
downloadmana-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.h4
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;