Hello,

This patch fixes a probable segfault on solaris when printing
exceptions: its libc doesn't cope itself with NULLs.

Samuel
Index: Programs/brlapi_client.c
===================================================================
--- Programs/brlapi_client.c    (révision 4682)
+++ Programs/brlapi_client.c    (copie de travail)
@@ -1830,7 +1830,7 @@
     return errmsg;
   }
   else if (error->brlerrno==BRLAPI_ERROR_LIBCERR) {
-    snprintf(errmsg,sizeof(errmsg),"%s: %s", error->errfun, 
strerror(error->libcerrno));
+    snprintf(errmsg,sizeof(errmsg),"%s: %s", 
error->errfun?error->errfun:"(null)", strerror(error->libcerrno));
     return errmsg;
   } else
     return brlapi_errlist[error->brlerrno];
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Reply via email to