CID 22447 Calling risky function

github issue #336
This commit is contained in:
Enno Rehling 2015-11-04 12:09:45 +01:00
parent c090f8e1f4
commit 9d4489972b
1 changed files with 1 additions and 1 deletions

View File

@ -4525,7 +4525,7 @@ void update_subscriptions(void)
int subscription, fno; int subscription, fno;
faction *f; faction *f;
if (fscanf(F, "%d %s", &subscription, zFaction) <= 0) if (fscanf(F, "%d %4s", &subscription, zFaction) <= 0)
break; break;
fno = atoi36(zFaction); fno = atoi36(zFaction);
f = findfaction(fno); f = findfaction(fno);