better error message

This commit is contained in:
Mike Dirolf 2009-12-17 09:47:27 -05:00
parent aaf590214c
commit d5f0443fc1
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@
#define SAFE_WRITE_AT_POS(buffer, position, data, size) \
if (buffer_write_at_position((buffer), (position), (data), (size)) != 0) \
rb_raise(rb_eNoMemError, "failed to allocate memory in buffer.c")
rb_raise(rb_eRuntimeError, "invalid write at position in buffer.c")
#define MAX_HOSTNAME_LENGTH 256