summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-08-30 10:46:07 +0200
committerunknown <msvensson@neptunus.(none)>2005-08-30 10:46:07 +0200
commit8ee0dd5f6a96657827ed05c42690aaf8c84787d1 (patch)
treecd3bfd4855c634ace1519fa8635053af2371dde1 /sql/examples
parent43e07c3b916bb967838c2dc5c63be3589385b4cf (diff)
parent68e3b6f5f12f14fc2848ad29c2dc2d4c5c2895fa (diff)
downloadmariadb-git-8ee0dd5f6a96657827ed05c42690aaf8c84787d1.tar.gz
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/bug12527/my50-bug12527
Diffstat (limited to 'sql/examples')
-rw-r--r--sql/examples/ha_archive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc
index fd47b45ce52..1756bae02a1 100644
--- a/sql/examples/ha_archive.cc
+++ b/sql/examples/ha_archive.cc
@@ -258,7 +258,7 @@ int ha_archive::write_data_header(gzFile file_to_write)
data_buffer[1]= (uchar)ARCHIVE_VERSION;
if (gzwrite(file_to_write, &data_buffer, DATA_BUFFER_SIZE) !=
- sizeof(DATA_BUFFER_SIZE))
+ DATA_BUFFER_SIZE)
goto error;
DBUG_PRINT("ha_archive::write_data_header", ("Check %u", (uint)data_buffer[0]));
DBUG_PRINT("ha_archive::write_data_header", ("Version %u", (uint)data_buffer[1]));