summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-07-18 07:39:53 +0000
committerAntony Dovgal <tony2001@php.net>2008-07-18 07:39:53 +0000
commitfbf68def7d14f02922207f6f200c72cc363e0836 (patch)
treeab637e17983100d9e0c3acc99d0de3016cfd54de /ext/gd
parent893c55f2bccff84d399fc59785bc23dc64c3f78a (diff)
downloadphp-git-fbf68def7d14f02922207f6f200c72cc363e0836.tar.gz
fix segfault
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/gd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 32a8ff4a92..3484c79d95 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -3041,7 +3041,7 @@ PHP_FUNCTION(imagecolorat)
}
} else {
if (im->pixels && gdImageBoundsSafe(im, x, y)) {
- RETURN_LONG(im->pixels[x][y]);
+ RETURN_LONG(im->pixels[y][x]);
} else {
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "%ld,%ld is out of bounds", x, y);
RETURN_FALSE;