HunterZ / umoria

Official source code history for the roguelike UMoria.
http://free-moria.sourceforge.net/
GNU General Public License v2.0
46 stars 10 forks source link

Out of boundaries write #6

Open notorand-it opened 3 years ago

notorand-it commented 3 years ago

In file unix.c, line #325, it should read:

while (*file != '/' && i < sizeof(user)-1)

as you are going to add an extra \0 in the end.

notorand-it commented 3 years ago

P.S. Long live to umoria!