[macruby-changes] [2217] MacRuby/branches/experimental/error.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 4 22:45:02 PDT 2009
Revision: 2217
http://trac.macosforge.org/projects/ruby/changeset/2217
Author: lsansonetti at apple.com
Date: 2009-08-04 22:45:01 -0700 (Tue, 04 Aug 2009)
Log Message:
-----------
make sure the warning line is NULL terminated
Modified Paths:
--------------
MacRuby/branches/experimental/error.c
Modified: MacRuby/branches/experimental/error.c
===================================================================
--- MacRuby/branches/experimental/error.c 2009-08-05 05:44:43 UTC (rev 2216)
+++ MacRuby/branches/experimental/error.c 2009-08-05 05:45:01 UTC (rev 2217)
@@ -146,6 +146,7 @@
err_snprintf(buf, BUFSIZ, fmt, args);
len = strlen(buf);
buf[len++] = '\n';
+ buf[len] = '\0';
rb_write_error2(buf, len);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090804/ab0a9146/attachment.html>
More information about the macruby-changes
mailing list