summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands-wms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands-wms.c b/commands-wms.c
index c5be0f0..2e4e08f 100644
--- a/commands-wms.c
+++ b/commands-wms.c
@@ -591,7 +591,7 @@ pdu_encode_data(unsigned char *dest, const char *str)
dest[len++] = 0;
len += pdu_encode_7bit_str(&dest[len], str);
- dest[0] = len - 1;
+ dest[0] = strlen(str);
return len;
}