[hackers] [skvm] fixing silly bug. Thanks to Jeff Ruby for reporting it. || Dimitrios Papastamos <stateless [at] archlinux.us>

From: <hg_AT_suckless.org>
Date: Thu, 9 Sep 2010 17:43:05 +0000 (UTC)

changeset: 36:f7fbd91d1532
tag: tip
user: Dimitrios Papastamos <stateless [at] archlinux.us>
date: Thu Sep 09 18:43:02 2010 +0100
files: skvm.c
description:
fixing silly bug. Thanks to Jeff Ruby for reporting it.

diff -r e7fba04570c6 -r f7fbd91d1532 skvm.c
--- a/skvm.c Fri Aug 13 18:06:27 2010 +0100
+++ b/skvm.c Thu Sep 09 18:43:02 2010 +0100
@@ -792,7 +792,7 @@
         goto out;
 
     snprintf(buf, sizeof(buf), "%jd\n", (intmax_t)getpid());
- if (write(pid_fd, buf, strlen(buf) != strlen(buf)))
+ if (write(pid_fd, buf, strlen(buf)) != strlen(buf))
         goto out;
     return 0;
 
Received on Thu Sep 09 2010 - 19:43:05 CEST

This archive was generated by hypermail 2.2.0 : Thu Sep 09 2010 - 19:48:04 CEST