Diff between f763bc0cd82a49854dd13f702383c9bdebc8178b and dbe0ed14d5e12f76408e6f7f91ce6d3944fd2722

Changed Files

File Additions Deletions Status
attrib/interactive.c +2 -2 modified

Full Patch

diff --git a/attrib/interactive.c b/attrib/interactive.c
index 0064ba2..073e3f7 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
@@ -601,8 +601,8 @@ static void cmd_char_write(int argcp, char **argvp)
 		return;
 	}
 
-	handle = strtoll(argvp[1], NULL, 16);
-	if (errno != 0 || handle <= 0) {
+	handle = strtohandle(argvp[1]);
+	if (handle <= 0) {
 		printf("A valid handle is required\n");
 		return;
 	}