Get rid of hardcoded string length.
Gisle Aas [Wed, 4 Jan 2006 14:10:34 +0000 (14:10 +0000)]
p4raw-id: //depot/perl@26647

thread.h

index 20152f3..a4c10e7 100644 (file)
--- a/thread.h
+++ b/thread.h
     STMT_START {                                               \
        int _eC_;                                               \
        if ((_eC_ = pthread_key_create(&PL_thr_key, 0))) {      \
-            write(2, "panic: pthread_key_create failed\n", 33); \
+            write(2, STR_WITH_LEN("panic: pthread_key_create failed\n")); \
            exit(1);                                            \
        }                                                       \
     } STMT_END