[1233] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[nelhage/barnowl] b9cb41: Replace questionable sprintf(buf, "%s...", buf, .....

daemon@ATHENA.MIT.EDU (noreply@github.com)
Thu Oct 29 18:14:25 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
Date: Sat, 6 Dec 2008 20:26:28 -0800
From: noreply@github.com
Apparently-To: <dirty-owl-hackers@mit.edu>
To: undisclosed-recipients:;

Branch: refs/heads/master
Home:   http://github.com/nelhage/barnowl

Commit: b9cb41bbbda316fa057e4635ea6aa99478cd9ef6
    http://github.com/nelhage/barnowl/commit/b9cb41bbbda316fa057e4635ea6aa99478cd9ef6
Author: Anders Kaseorg <andersk@mit.edu>
Date:   2008-12-06 (Sat, 06 Dec 2008)

Changed paths:
  M functions.c
  M global.c
  M zcrypt.c
  M zephyr.c
  M zwrite.c

Log Message:
-----------
Replace questionable sprintf(buf, "%s...", buf, ...) pattern, which is
broken by -D_FORTIFY_SOURCE.

perl -pe 's/(sprintf\s*\(\s*([^,]*))(\s*,\s*")%s([^"]*"\s*,)\s*\2\s*,/\1 + strlen(\2)\3\4/g'



home help back first fref pref prev next nref lref last post