diff options
Diffstat (limited to 'games-misc/yadex/files/yadex_170-obj-overflow.patch')
-rw-r--r-- | games-misc/yadex/files/yadex_170-obj-overflow.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/games-misc/yadex/files/yadex_170-obj-overflow.patch b/games-misc/yadex/files/yadex_170-obj-overflow.patch deleted file mode 100644 index aba86f1e0e0e..000000000000 --- a/games-misc/yadex/files/yadex_170-obj-overflow.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- yadex-1.7.0/src/objects.cc 2003-03-28 06:37:32.000000000 -0600 -+++ yadex-1.7.0/src/objects.cc 2010-05-06 11:42:36.824661556 -0500 -@@ -543,7 +543,7 @@ - SideDefs[last].yoff = 0; - strcpy (SideDefs[last].tex1, "-"); - strcpy (SideDefs[last].tex2, "-"); -- strcpy (SideDefs[last].tex3, default_middle_texture); -+ strncpy (SideDefs[last].tex3, default_middle_texture, sizeof(SideDefs[last].tex3)); - SideDefs[last].sector = NumSectors - 1; - } - MadeMapChanges = 1; ---- yadex-1.7.0/src/editobj.cc 2003-04-24 15:32:39.000000000 -0500 -+++ yadex-1.7.0/src/editobj.cc 2010-05-07 16:36:49.825412601 -0500 -@@ -937,7 +937,7 @@ - struct SideDef *s = SideDefs + l->sidedef1; - strcpy (s->tex1, "-"); - strcpy (s->tex2, "-"); -- strcpy (s->tex3, default_middle_texture); -+ strncpy (s->tex3, default_middle_texture, sizeof(s->tex3)); - } - /* Don't delete the 2nd sidedef, it could be used - by another linedef. And if it isn't, the next |