diff options
Diffstat (limited to 'mbbsd/aids.c')
-rw-r--r-- | mbbsd/aids.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/aids.c b/mbbsd/aids.c index 53bca85b..2b5baac7 100644 --- a/mbbsd/aids.c +++ b/mbbsd/aids.c @@ -79,8 +79,7 @@ char *aidu2fn(char *fn, aidu_t aidu) if(fn == NULL) return NULL; - snprintf(fn, FNLEN - 1, "%c.%d.A.%03X", ((type == 0) ? 'M' : 'G'), (unsigned int)v1, (unsigned int)v2); - fn[FNLEN - 1] = '\0'; + snprintf(fn, FNLEN, "%c.%d.A.%03X", ((type == 0) ? 'M' : 'G'), (unsigned int)v1, (unsigned int)v2); return fn; } |