Fixed recently introduced minor inconsistency.
This commit is contained in:
parent
a244cf647e
commit
a6a2d5de9f
|
@ -30,7 +30,7 @@
|
||||||
*
|
*
|
||||||
* Author: Kajtar Zsolt <soci@c64.rulez.org>
|
* Author: Kajtar Zsolt <soci@c64.rulez.org>
|
||||||
*
|
*
|
||||||
* $Id: urlconv.c,v 1.3 2010/09/28 20:40:52 oliverschmidt Exp $
|
* $Id: urlconv.c,v 1.4 2010/09/29 09:35:56 oliverschmidt Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -139,7 +139,7 @@ urlconv_tofilename(char *dest, char *source, unsigned char maxlen)
|
||||||
*to = c;
|
*to = c;
|
||||||
}
|
}
|
||||||
} while(c);
|
} while(c);
|
||||||
if(*to == ISO_slash && (len + sizeof(http_index_html) - 3) < maxlen) {
|
if(*to == ISO_slash && (len + sizeof(http_index_htm) - 3) < maxlen) {
|
||||||
strcpy(to, http_index_htm); // add index.htm
|
strcpy(to, http_index_htm); // add index.htm
|
||||||
} else {
|
} else {
|
||||||
++to;
|
++to;
|
||||||
|
|
Loading…
Reference in a new issue