summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <none@none>2012-07-17 23:21:57 +0200
committerportix <none@none>2012-07-17 23:21:57 +0200
commit232af7d6dbc7516b405d17c86d255aca1e7949ac (patch)
treeecc839cfa5901db208fa48db78f432d04a0083a5 /src/util.c
parent6bf9b552b0b102c0106e8b173f63b5cd1da5fc75 (diff)
downloaddwb-232af7d6dbc7516b405d17c86d255aca1e7949ac.zip
Appending empty struct to message_values, fixes segfault in JSCLassCreate
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 7ef7c62a..c355c00d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -334,7 +334,7 @@ util_expand_home(char *buffer, const char *filename, size_t length) {
char *
util_normalize_filename(char *buffer, const char *filename, size_t length) {
char *tmp = buffer;
- for (int i=0; *filename != 0 && i<length-1; i++, filename++, buffer++) {
+ for (size_t i=0; *filename != 0 && i<length-1; i++, filename++, buffer++) {
*buffer = *filename == '/' ? '_' : *filename;
}
*buffer = 0;