Update upstream statuses again
[gentoo-interactive-fiction.git] / games-engines / fizmo / files / fizmo-0.6.0-path-allocation.patch
blob3e40b389428a10c61726a8ec7aef93942ae6f97d
1 Source: dleverton
2 Upstream: accepted for next release
3 Reason: allocate the right amount of space for paths
5 --- fizmo-0.6.0/src/fizmo/babel.c~ 2009-03-25 10:34:04.000000000 +0000
6 +++ fizmo-0.6.0/src/fizmo/babel.c 2009-03-28 17:56:58.000000000 +0000
7 @@ -559,7 +559,7 @@
8 return;
10 filename = fizmo_malloc(
11 - strlen(config_dir_name) + 1 + strlen(BABEL_TIMESTAMP_FILE_NAME));
12 + strlen(config_dir_name) + 2 + strlen(BABEL_TIMESTAMP_FILE_NAME));
14 sprintf(filename, "%s/%s", config_dir_name, BABEL_TIMESTAMP_FILE_NAME);
16 @@ -606,7 +606,7 @@
17 return false;
19 filename = fizmo_malloc(
20 - strlen(config_dir_name) + 1 + strlen(BABEL_TIMESTAMP_FILE_NAME));
21 + strlen(config_dir_name) + 2 + strlen(BABEL_TIMESTAMP_FILE_NAME));
23 //printf("%s/%s", config_dir_name, BABEL_TIMESTAMP_FILE_NAME);
24 sprintf(filename, "%s/%s", config_dir_name, BABEL_TIMESTAMP_FILE_NAME);