mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed signed/unsiged bug
SVN revision: 1771
This commit is contained in:
parent
628a4e3afb
commit
a7aabf7969
@ -18361,7 +18361,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
strcpy(iattr, attr_list[i]);
|
strcpy(iattr, attr_list[i]);
|
||||||
for (j = 0; j < (int) strlen(iattr); j++)
|
for (j = 0; j < (int) strlen(iattr); j++)
|
||||||
/* replace special characters with "_", exclude any UTF-8 */
|
/* replace special characters with "_", exclude any UTF-8 */
|
||||||
if (!isalnum(iattr[j]) && (iattr[j] < 128))
|
if (!isalnum(iattr[j]) && ((unsigned char)iattr[j] < 128))
|
||||||
iattr[j] = '_';
|
iattr[j] = '_';
|
||||||
rsprintf("\t\t<%s>", iattr);
|
rsprintf("\t\t<%s>", iattr);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user