diff --git a/nonlib/Log_Entry.H b/nonlib/Log_Entry.H index 66fb9d3..ba6e91d 100644 --- a/nonlib/Log_Entry.H +++ b/nonlib/Log_Entry.H @@ -53,7 +53,8 @@ public: void add ( const char *name, type v ) \ { \ grow(); \ - asprintf( &_sa[ _i ], "%s " format, name, (exp) ); \ + if ( -1 == asprintf( &_sa[ _i ], "%s " format, name, (exp) ) ) \ + abort(); \ strtok( _sa[ _i++ ], " " ); \ } \