diff options
| author | Wayne Davison <wayned@samba.org> | 2006-10-13 23:46:32 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-10-13 23:46:32 +0000 |
| commit | 83078af5b0b1db4eb185cb256ebb76c117eea110 (patch) | |
| tree | 42a4a8040cdc7cb9883064e1548d6f7565e639d4 /main.c | |
| parent | 185aa5b0e5f5ffd4d5ca442bdff113aba501f19b (diff) | |
| download | android_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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |
