$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- heyu-2.6.0.orig/tty.c	2009-01-19 03:57:00.000000000 +0100
+++ heyu-2.6.0/tty.c	2009-05-29 14:08:06.087764489 +0200
@@ -395,7 +395,7 @@ char *make_lock_name ( char *ttydev )
     struct stat stat_buf;
 
     /* strip the leading path name */
-    ptr = rindex(ttydev, '/');
+    ptr = strrchr(ttydev, '/');
 
     devstr = dev_string;