From: Jarkko Sakkinen Date: Wed, 26 Jan 2011 16:04:40 +0000 (-0800) Subject: fix X-Git-Tag: accepted/trunk/20130107.204027~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00a3f3507befa1bae0e90611dd36ecc1cd539e4f;p=platform%2Fupstream%2Fsmack.git fix --- diff --git a/src/smack_xattr.c b/src/smack_xattr.c index f707c04..2a82f21 100644 --- a/src/smack_xattr.c +++ b/src/smack_xattr.c @@ -100,7 +100,7 @@ ssize_t smack_xattr_get_from_proc(int pid, char *smack, if (file == NULL) return -1; - if (fgets(buf, sizeof(result), file) == NULL) { + if (fgets(buf, sizeof(buf), file) == NULL) { fclose(file); return -1; }