check_invalid_path_callsign: use CALLSIGNLEN_MAX (9), not 12

This commit is contained in:
Heikki Hannikainen 2012-10-08 10:38:18 +03:00
parent 817e409369
commit bf8371f97f
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ static int check_invalid_path_callsign(const char *call, int len)
//hlog(LOG_DEBUG, "check_invalid_path_callsign: '%.*s'", len, call);
if (len > 12 || len < 1)
if (len > CALLSIGNLEN_MAX || len < 1)
return -1;
while (p < e) {