From: Wilfried Göesgens Date: Thu, 9 Aug 2007 22:30:34 +0000 (+0000) Subject: * two tiny errors weren't seen. X-Git-Tag: v7.86~3163 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=9d8924261fff66a4b756aaba36a213b8112ecd7c * two tiny errors weren't seen. --- diff --git a/citadel/citserver.c b/citadel/citserver.c index 6d1999014..d74c3a0ab 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -337,7 +337,10 @@ int is_public_client(void) char *ptr; ptr = buf; while (!IsEmptyStr(ptr)) { - if (buf[i] == '#') buf[i] = 0; + if (*ptr == '#') { + *ptr = 0; + break; + } else ptr++; } while (isspace((buf[strlen(buf)-1]))) { diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 1ef2b979c..d32e9f829 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -433,7 +433,7 @@ void cmd_oimg(char *cmdbuf) } else if (!strcasecmp(filename, "_roompic_")) { assoc_file_name(pathname, sizeof pathname, &CC->room, ctdl_image_dir); } else { - for (a = 0; !IsEmptyStr(&filename[0]); ++a) { + for (a = 0; !IsEmptyStr(&filename[a]); ++a) { filename[a] = tolower(filename[a]); if (filename[a] == '/') { filename[a] = '_';