Changeset 44cfc6031b411c3e66d78fb804c759b27791bb34

Show
Ignore:
Timestamp:
02/25/08 14:17:06 (6 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1203945426 +0000
git-parent:

[2c083c9f8600e8457d9fc119f3ffc094c279b0a7]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1203945426 +0000
Message:

misc/threads.c: Fix error description printing in vlc_pthread_fatal().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/threads.c

    rcc6e3d0 r44cfc60  
    9696                        const char *file, unsigned line) 
    9797{ 
    98     char buf[1000]; 
    9998    const char *msg; 
    10099 
     
    103102    fflush (stderr); 
    104103 
    105     /* Sometimes strerror_r() crashes too, so make sure we print an error 
     104    /* Sometimes strerror() crashes too, so make sure we print an error 
    106105     * message before we invoke it */ 
    107     msg = strerror_r (error, buf, sizeof (buf)); 
    108     fprintf (stderr, " %s\n", msg ? msg : "(null)"); 
     106    msg = strerror (error); 
     107    fprintf (stderr, "Error description was: \"%s\"\n", msg ? msg : "(null)"); 
    109108    fflush (stderr); 
    110109    abort ();