Mercurial > hg > nnchat
diff th_args.c @ 11:707e35b03f89
Synced th-libs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 22 Mar 2008 02:52:01 +0000 |
parents | ecfa4e3597e3 |
children | 323c98360d8b |
line wrap: on
line diff
--- a/th_args.c Sat Mar 22 00:55:03 2008 +0000 +++ b/th_args.c Sat Mar 22 02:52:01 2008 +0000 @@ -213,8 +213,8 @@ /* Long option */ for (optN = -1, optLen = i = 0; (i < optListN) && (optN < 0); i++) if (optList[i].optLong) { - optLen = th_strlen(optList[i].optLong); - if (th_strncmp(currArg, optList[i].optLong, optLen) == 0) + optLen = strlen(optList[i].optLong); + if (strncmp(currArg, optList[i].optLong, optLen) == 0) optN = i; }