~ubuntu-branches/ubuntu/maverick/seyon/maverick

« back to all changes in this revision

Viewing changes to SeString.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2009-01-17 21:28:04 UTC
  • Revision ID: james.westby@ubuntu.com-20090117212804-l2jlqhpmreod7fg2
Tags: 2.20c-30
* Fix pending l10n issues. Thanks for prodding from Christian Perrier!
  Debconf translations:
* Japanese (Hideki Yamane (Debian-JP)).  Closes: #512984, #554095
* Simplified Chinese (Ji ZhengYu).  Closes: #512984
* Fix stupid string overflow in str_stripspc_copy(). Closes: #542828.
  Thanks to Frederic Danis for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
  strncpy(buffer, source, REG_BUF);
105
105
 
106
106
  /* Null-terminate, as expected by str_strip_lead_end_space(). */
107
 
  buffer[REG_BUF] = '\0';
 
107
  buffer[REG_BUF-1] = '\0';
108
108
 
109
109
  bufptr = str_strip_lead_end_space(buffer);
110
110