summaryrefslogtreecommitdiff
path: root/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lock.c b/lock.c
index 9a4553a..d51d09e 100644
--- a/lock.c
+++ b/lock.c
@@ -132,7 +132,7 @@ GetLockId(const char *session_name)
}
buf[0] = '\0';
- fscanf (fp, "%s\n", buf);
+ fscanf (fp, "%255s\n", buf);
ret = XtNewString (buf);
fclose (fp);