added mingw compatibility

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@411 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-02-08 14:03:38 +00:00
parent 37c008afea
commit 02b770e6b8

View File

@@ -54,7 +54,7 @@ void print_usage(const char *app_name, const struct option options[],
break;
}
snprintf(buf, sizeof buf, "--%-13s%s%s", options[i].name, tmp, arg_str);
if (strnlen(buf, sizeof buf) > 24) {
if (strlen(buf) > 24) {
printf(" %s\n", buf);
buf[0] = '\0';
}