Advertisement
Guest User

Untitled

a guest
Jun 26th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. Index: manage/do_remove.c
  2. ===================================================================
  3. --- manage/do_remove.c  (Revision 65521)
  4. +++ manage/do_remove.c  (Arbeitskopie)
  5. @@ -97,9 +97,9 @@
  6.      }
  7.  
  8.      if (G_strcasecmp(list[n].element[0], "cell") == 0) {
  9. -   char colr2[50];
  10. +   char colr2[10240];
  11.  
  12. -   sprintf(colr2, "colr2/%s", G_mapset());
  13. +   G_snprintf(colr2, 10240, "colr2/%s", G_mapset());
  14.     switch (G_remove(colr2, old)) {
  15.     case -1:
  16.         G_warning(_("Unable to remove %s"), colr2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement