diff options
author | portix <none@none> | 2012-07-17 23:21:57 +0200 |
---|---|---|
committer | portix <none@none> | 2012-07-17 23:21:57 +0200 |
commit | 232af7d6dbc7516b405d17c86d255aca1e7949ac (patch) | |
tree | ecc839cfa5901db208fa48db78f432d04a0083a5 /src/util.c | |
parent | 6bf9b552b0b102c0106e8b173f63b5cd1da5fc75 (diff) | |
download | dwb-232af7d6dbc7516b405d17c86d255aca1e7949ac.zip |
Appending empty struct to message_values, fixes segfault in JSCLassCreate
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |