commit | cc9bc8f824826a1b8a9326607a8cf34b10255d33 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Feb 13 16:17:03 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Feb 13 16:17:03 1995 +0000 |
tree | d1433964c3f94cb63e3e1ace31f3e9a1eee6df4e | |
parent | e6c884cadbcfcecbad261f8b45f32aa116902682 [diff] |
null-terminate the error string in macstrerror
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index cbeeee7..53f130f 100644 --- a/Mac/Python/macglue.c +++ b/Mac/Python/macglue.c
@@ -123,6 +123,7 @@ HLock(h); str = (char *)*h; memcpy(buf, str+1, (unsigned char)str[0]); + buf[(unsigned char)str[0]] = '\0'; HUnlock(h); ReleaseResource(h); } else {