Skip to content

Commit

Permalink
Merge branch '53' into 54
Browse files Browse the repository at this point in the history
* 53:
  Fixed bug #61430 (Transposed memset() params in sapi/fpm/fpm/fpm_shm.c).
  • Loading branch information
Ilia Alshanetsky committed Mar 19, 2012
2 parents 867d980 + edb5781 commit 5709f7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ PHP NEWS
. Fixed bug #52719 (array_walk_recursive crashes if third param of the
function is by reference). (Nikita Popov)

- FPM
. Fixed bug #61430 (Transposed memset() params in sapi/fpm/fpm/fpm_shm.c).
(michaelhood at gmail dot com, Ilia)

- Ibase
. Fixed bug #60947 (Segmentation fault while executing ibase_db_info).
(Ilia)
Expand Down
2 changes: 1 addition & 1 deletion sapi/fpm/fpm/fpm_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void *fpm_shm_alloc(size_t size) /* {{{ */
return NULL;
}

memset(mem, size, 0);
memset(mem, 0, size);
fpm_shm_size += size;
return mem;
}
Expand Down

0 comments on commit 5709f7d

Please sign in to comment.