summaryrefslogtreecommitdiff
path: root/package/heyu/patches/patch-tty_c
blob: cb8acf6d9753508cd41b27240a1efc5c509ba2e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$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;