diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 (GMT) |
commit | 79acb9edfa893b5072350c82fd0645d023b13b03 (patch) | |
tree | 7b9417700c6942124614f4639bfbea8ff5c68b9e /Objects/stringobject.c | |
parent | 468742878f53bb0a9061e6b167b3150f341fdf1c (diff) | |
download | cpython-79acb9edfa893b5072350c82fd0645d023b13b03.zip cpython-79acb9edfa893b5072350c82fd0645d023b13b03.tar.gz cpython-79acb9edfa893b5072350c82fd0645d023b13b03.tar.bz2 |
Patch #614055: Support OpenVMS.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index c234b04..3a69aa9 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -765,7 +765,11 @@ string_print(PyStringObject *op, FILE *fp, int flags) return ret; } if (flags & Py_PRINT_RAW) { - fwrite(op->ob_sval, 1, (int) op->ob_size, fp); +#ifdef __VMS + if (op->ob_size) fwrite(op->ob_sval, (int) op->ob_size, 1, fp); +#else + fwrite(op->ob_sval, 1, (int) op->ob_size, fp); +#endif return 0; } |