projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f33e07
)
replace strcpy use with strlcpy in some commented out code in menu
author
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Sep 2007 10:12:09 +0000
(10:12 +0000)
committer
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Sep 2007 10:12:09 +0000
(10:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7576
d7cf8633
-e32d-0410-b094-
e92efae38249
menu.c
patch
|
blob
|
history
diff --git
a/menu.c
b/menu.c
index 3950381f282ccad2b77ba72b1a0ba8eb47c6e594..1b0a0b2b2113e19af2aeb6bcdf8c583c8e2ada54 100644
(file)
--- a/
menu.c
+++ b/
menu.c
@@
-2474,8
+2474,8
@@
static void M_AddBindToCategory(bindcategory_t *c, char *command, char *descript
*b = Z_Alloc(sizeof(binditem_t) + strlen(command) + 1 + strlen(description) + 1);
*b->command = (char *)((*b) + 1);
*b->description = *b->command + strlen(command) + 1;
- str
cpy(*b->command, command
);
- str
cpy(*b->description, description
);
+ str
lcpy(*b->command, command, strlen(command) + 1
);
+ str
lcpy(*b->description, description, strlen(description) + 1
);
}
static void M_AddBind (char *category, char *command, char *description)