diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filelock.c b/src/filelock.c index 689a80a4209..4c211bf9947 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -6,7 +6,7 @@ This file is part of GNU Emacs. | |||
| 6 | 6 | ||
| 7 | GNU Emacs is free software; you can redistribute it and/or modify | 7 | GNU Emacs is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 2, or (at your option) | 9 | the Free Software Foundation; either version 3, or (at your option) |
| 10 | any later version. | 10 | any later version. |
| 11 | 11 | ||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | 12 | GNU Emacs is distributed in the hope that it will be useful, |
| @@ -468,8 +468,8 @@ current_lock_owner (owner, lfname) | |||
| 468 | } | 468 | } |
| 469 | 469 | ||
| 470 | /* Parse USER@HOST.PID:BOOT_TIME. If can't parse, return -1. */ | 470 | /* Parse USER@HOST.PID:BOOT_TIME. If can't parse, return -1. */ |
| 471 | /* The USER is everything before the first @. */ | 471 | /* The USER is everything before the last @. */ |
| 472 | at = index (lfinfo, '@'); | 472 | at = rindex (lfinfo, '@'); |
| 473 | dot = rindex (lfinfo, '.'); | 473 | dot = rindex (lfinfo, '.'); |
| 474 | if (!at || !dot) | 474 | if (!at || !dot) |
| 475 | { | 475 | { |