aboutsummaryrefslogtreecommitdiff
path: root/src/helper/ioutil.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-11 13:00:08 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-11 13:00:08 +0000
commit1b2c1c6ff0442bf954f39c39a4be3d00fc90987a (patch)
tree99db3be479ca6d70617c2455dedbcc91a313e5c2 /src/helper/ioutil.c
parent538050c146ea514b27657930e63a7f51e2a34c4c (diff)
downloadriscv-openocd-1b2c1c6ff0442bf954f39c39a4be3d00fc90987a.zip
riscv-openocd-1b2c1c6ff0442bf954f39c39a4be3d00fc90987a.tar.gz
riscv-openocd-1b2c1c6ff0442bf954f39c39a4be3d00fc90987a.tar.bz2
fix ordering of arguments to fwrite()
git-svn-id: svn://svn.berlios.de/openocd/trunk@2197 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/ioutil.c')
-rw-r--r--src/helper/ioutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c
index 6be3e6c..77e5e35 100644
--- a/src/helper/ioutil.c
+++ b/src/helper/ioutil.c
@@ -225,7 +225,7 @@ int handle_append_command(struct command_context_s *cmd_ctx, char *cmd,
for (i = 1; i < argc; i++)
{
- if (fwrite(args[i], strlen(args[i]), 1, config_file)!=strlen(args[i]))
+ if (fwrite(args[i], 1, strlen(args[i]), config_file)!=strlen(args[i]))
break;
if (i != argc - 1)
{