diff rvinterf/etmsync/fsmisc.c @ 12:869ce9f61a67

fc-fsio format command: buglet in the usage error handling
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 03 Oct 2016 05:54:21 +0000
parents e7502631a0f9
children e434df27e4d9
line wrap: on
line diff
--- a/rvinterf/etmsync/fsmisc.c	Mon Jul 25 21:09:33 2016 +0000
+++ b/rvinterf/etmsync/fsmisc.c	Mon Oct 03 05:54:21 2016 +0000
@@ -29,7 +29,7 @@
 	slen = strlen(argv[1]);
 	if (slen >= TMFFS_STRING_SIZE) {
 		printf("error: argument exceeds string length limit\n");
-		return;
+		return(ERROR_USAGE);
 	}
 	dp = cmdpkt + 1;
 	*dp++ = ETM_FFS2;