aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-10-13 23:46:32 +0000
committerWayne Davison <wayned@samba.org>2006-10-13 23:46:32 +0000
commit83078af5b0b1db4eb185cb256ebb76c117eea110 (patch)
tree42a4a8040cdc7cb9883064e1548d6f7565e639d4 /main.c
parent185aa5b0e5f5ffd4d5ca442bdff113aba501f19b (diff)
downloadandroid_external_rsync-83078af5b0b1db4eb185cb256ebb76c117eea110.tar.gz
android_external_rsync-83078af5b0b1db4eb185cb256ebb76c117eea110.tar.bz2
android_external_rsync-83078af5b0b1db4eb185cb256ebb76c117eea110.zip
Changed sprintf() calls to snprintf().
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 52ec58e2..46d62509 100644
--- a/main.c
+++ b/main.c
@@ -1258,8 +1258,8 @@ static RETSIGTYPE rsync_panic_handler(UNUSED(int whatsig))
char cmd_buf[300];
int ret;
- sprintf(cmd_buf, get_panic_action(),
- getpid(), getpid());
+ snprintf(cmd_buf, sizeof cmd_buf, get_panic_action(),
+ getpid(), getpid());
/* Unless we failed to execute gdb, we allow the process to
* continue. I'm not sure if that's right. */