harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r601274 - /harmony/enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c
Date Wed, 05 Dec 2007 09:39:21 GMT
Author: gshimansky
Date: Wed Dec  5 01:39:14 2007
New Revision: 601274

URL: http://svn.apache.org/viewvc?rev=601274&view=rev
Log:
Make sure that the copy of the string is always null terminated


Modified:
    harmony/enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c

Modified: harmony/enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c?rev=601274&r1=601273&r2=601274&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/misc/linux/sysencoding.c Wed Dec  5 01:39:14
2007
@@ -28,4 +28,5 @@
     char *system_message)
 {
     strncpy(converted_message, system_message, buffer_size - 1);
+    converted_message[buffer_size - 1] = '\0';
 }



Mime
View raw message