diff options
author | Tilman Schmidt <tilman@imap.cc> | 2009-10-25 05:29:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-29 04:37:08 -0400 |
commit | 22077ebceb44f4097d4677e2a26bc1175143d647 (patch) | |
tree | 96416fb1b88a65096a55e17b20d7c4439ae6c4c4 /drivers/isdn/gigaset/capi.c | |
parent | 6c91191668d32ea15e6950de4ee35b6c75cf4da8 (diff) |
gigaset: fix format string typo in CAPI dial command
A missing dot lead to garbage characters being included in the
dial command generated from a CAPI CONNECT_REQ message, which
interestingly enough worked anyway, illustrating the resilience
of the device.
Impact: bugfix
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset/capi.c')
-rw-r--r-- | drivers/isdn/gigaset/capi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/gigaset/capi.c b/drivers/isdn/gigaset/capi.c index ac0a2da1eef6..d1afac2bf650 100644 --- a/drivers/isdn/gigaset/capi.c +++ b/drivers/isdn/gigaset/capi.c | |||
@@ -1254,7 +1254,7 @@ static void do_connect_req(struct gigaset_capi_ctr *iif, | |||
1254 | commands[AT_DIAL] = kmalloc(l+3, GFP_KERNEL); | 1254 | commands[AT_DIAL] = kmalloc(l+3, GFP_KERNEL); |
1255 | if (!commands[AT_DIAL]) | 1255 | if (!commands[AT_DIAL]) |
1256 | goto oom; | 1256 | goto oom; |
1257 | snprintf(commands[AT_DIAL], l+3, "D%*s\r", l, pp); | 1257 | snprintf(commands[AT_DIAL], l+3, "D%.*s\r", l, pp); |
1258 | 1258 | ||
1259 | /* encode parameter: Calling party number */ | 1259 | /* encode parameter: Calling party number */ |
1260 | pp = cmsg->CallingPartyNumber; | 1260 | pp = cmsg->CallingPartyNumber; |