diff options
Diffstat (limited to 'mbbsd/aids.c')
-rw-r--r-- | mbbsd/aids.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/aids.c b/mbbsd/aids.c index 2b5baac7..56d19378 100644 --- a/mbbsd/aids.c +++ b/mbbsd/aids.c @@ -235,8 +235,8 @@ SearchAIDResult_t do_search_aid(void) aidu = aidc2aidu(sp); if((sp2 = strchr(sp, '@')) != NULL) { - strncpy(bname, sp2 + 1, IDLEN); - bname[IDLEN] = '\0'; + // assert(sizeof(bname) > IDLEN); + strlcpy(bname, sp2 + 1, IDLEN+1); *sp2 = '\0'; } else |