Fixed wrong file lock used to read history items.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 6 Apr 2013 14:48:19 +0000 (16:48 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 6 Apr 2013 14:48:19 +0000 (16:48 +0200)
src/history.c

index 11b59be..c4ce593 100644 (file)
@@ -188,7 +188,7 @@ static GList *load(const char *file)
         return list;
     }
 
-    file_lock_set(fileno(f), F_WRLCK);
+    file_lock_set(fileno(f), F_RDLCK);
     while (fgets(buf, sizeof(buf), f)) {
         g_strstrip(buf);