X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fexfat-utils.git;a=blobdiff_plain;f=mkfs%2Fmain.c;h=02ac9c7cca6af193428028c473b58f7baac9cdec;hp=a164eebf82826b49af31a21bc0f54d7af1191172;hb=refs%2Ftags%2Fupstream%2F1.2.6;hpb=0e295d91bb7f18afee1a0b0d587e5a0cf58bf2fb diff --git a/mkfs/main.c b/mkfs/main.c index a164eeb..02ac9c7 100644 --- a/mkfs/main.c +++ b/mkfs/main.c @@ -3,7 +3,7 @@ Creates exFAT file system. Free exFAT implementation. - Copyright (C) 2011-2016 Andrew Nayenko + Copyright (C) 2011-2017 Andrew Nayenko This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -136,7 +136,7 @@ static int setup_volume_label(le16_t label[EXFAT_ENAME_MAX + 1], const char* s) memset(label, 0, (EXFAT_ENAME_MAX + 1) * sizeof(le16_t)); if (s == NULL) return 0; - return utf8_to_utf16(label, s, EXFAT_ENAME_MAX, strlen(s)); + return utf8_to_utf16(label, s, EXFAT_ENAME_MAX + 1, strlen(s)); } static uint32_t setup_volume_serial(uint32_t user_defined) @@ -228,7 +228,7 @@ int main(int argc, char* argv[]) } break; case 'V': - puts("Copyright (C) 2011-2016 Andrew Nayenko"); + puts("Copyright (C) 2011-2017 Andrew Nayenko"); return 0; default: usage(argv[0]);