diff --git a/System/Linux/Proc.hs b/System/Linux/Proc.hs
--- a/System/Linux/Proc.hs
+++ b/System/Linux/Proc.hs
@@ -129,7 +129,7 @@
        cmdline <- procGetCmdlineInfo pid
 
        -- Get command name.
-       let cmdStr  = head $ splitOn "\0" cmdline -- split with null separated string
+       let cmdStr  = head $ splitOneOf "\0 " cmdline -- split with null separated or blank character
            command = 
              -- Because name in /proc/pid/stat has number limit,
              -- so we try to use name in /proc/pid/cmdline.
diff --git a/proc.cabal b/proc.cabal
--- a/proc.cabal
+++ b/proc.cabal
@@ -1,5 +1,5 @@
 name:			proc
-version:		0.0.5
+version:		0.0.6
 Cabal-Version:	>= 1.8
 license:		GPL-3
 license-file:	LICENSE
