summaryrefslogtreecommitdiff
path: root/rsg_generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'rsg_generator.c')
-rw-r--r--rsg_generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsg_generator.c b/rsg_generator.c
index d6655723..5d307708 100644
--- a/rsg_generator.c
+++ b/rsg_generator.c
@@ -120,7 +120,8 @@ void printFuncDecl(FILE *f, const ApiEntry *api, const char *prefix, int addCont
printVarTypeAndName(f, &api->ret);
if (isFnPtr) {
char t[1024];
- strcpy(t, api->name);
+ strncpy(t, api->name, sizeof(t)-1);
+ t[sizeof(t)-1] = '\0';
if (strlen(prefix) == 0) {
if (t[0] > 'A' && t[0] < 'Z') {
t[0] -= 'A' - 'a';